@AxelFaiz
Open the door, lock the door, get out, then close the door while being outside, the door will remain locked and now you're outside and free to go.
Isn't that how you normally lock a car door anyway or do I have some fundamental misunderstanding of how car doors work?