You can just unlock the door and exit the car in that case-- there's no way to "lock someone in" unless you've modified the lock somehow. And if someone did that, they probably reinforced the glass too.