It's the weather.
pulling it fully cycles it so the lock can go on.
firing it in the cold means it won't cycle the full way (especially after firing a full mag) and simply doesn't travel far enough back to lock out.
point the pistol at the floor and fire and it usually locks it.