A hydraulic lock can occur in steam engines due to steam condensing back into water. In most steam engine designs there is a short time at the end of the return stroke of the piston when all the valves are shut and it is compressing any remaining steam. Water can be introduced from the boiler or in a cold engine, steam will condense to water on the cool walls of the cylinders and can potentially hydrolock an engine.
