The MD-11 shows water vapor forming in the area of low pressure on top of the wing under high humidity conditions.
There will be local shock waves forming on a plane in the transonic regime. A shock wave is a sudden change in pressure. This is what appears to be happening in the F-22 photo.
The term "breaking the sound barrier" is out dated. Airflow around an airplane varies with geometry. The discussion needs to be around Mach numbers, air pressure and humidity.