Oil could get cool enough in the P-38 to congeal in the boost control system that was regulated by oil pressure. It would allow the turbocharger to run away, not only producing too much boost, but eventually exceeding the safe RPM, at which point the turbine could literally explode. The armored ring around the turbocharger was there as much to contain a possible turbine failure as it was to protect against damage by enemy fire.
The same turbocharger, used on the P-47 and some bombers, could over speed and over boost there as well, but for other reasons. The P-47 actually had a light that glowed brighter as the turbocharger reached excessive RPM.
I suppose, in theory, it might be possible to "shock" an aircraft engine. But it would require that a heavily loaded and very hot engine be suddenly exposed to much colder air found at a much higher altitude, while the load that created the heat was lowered substantially. I'm not even sure that running at WEP until you got up to over 400 MPH level speed, pulling a steep "zoom climb" then slamming the throttles closed during, at the end of, or after a steep zoom climb could do it. It would probably be even more difficult with a liquid cooled engine, and you'd have to cool the coolant in the radiator instantly, and have it surge into the water jacket of the engine.
You'd be trying to duplicate the effects boiling most or all of the coolant out of your car, then pumping it full of chilled water, but in an aircraft, in flight. You can crack a head or a block, or blow a head gasket, in a car or truck, doing that.
I'm not sure you could do it even if you forced the oil cooler and radiator "doors" on a P-38 shot for speed at WEP, then slammed the throttles to idle and the doors open when you got 10K feet higher. Maybe.