That’s pretty funny!
That would never happen to me though!
(I also have one of those small spring-loaded class breakers hanging from my mirror - I would just break the glass!)
Most new cars can be programmed where they won't lock without pushing the button on the key fob. On both my vehicles I programmed them to where they can't lock with the keys inside the vehicle.