I'm completely lost how this happens though. Not the functional aspect, but the logical one.
If you didn't have the fob, and you had a key...would you still lock that in the car? Or are you acting a specific way because you don't think it's possible to lock the keys in the car? If you're getting out of the car without the key...why would you be locking the doors anyway?