That is horrible, glad you made it out . If it happens again from the inside you can take the lock apart with a Phillips screw driver. Once the plate is off take a flat head screw driver and pry the striker back into the lock releasing the door. It helps if you can pull the door in a little to take pressure off the striker.
__________________
|