Claustrophobia- Fear of confined spaces.
I once got locked in the car :(
And yes it is possible:
My mom went to the store and I stayed in the car. She accidentally locked it but it was no big deal to me until I decided to get some fresh air. There were 2 buttons that could have possibly opened the door, one of them set off an alarm (the one that opens them all;security precaution), I pressed the one that set off the alarm and it disabled the other button (yet again, another loving security precaution) and I was stuck in there panicing for like 15 minutes.