The driver's side door can only be locked from the inside. It's kind of like the problem of having to hold the button down when shutting the door to get a car door to lock.
Unfortunately this also means you have to exit the passenger side for it to remain locked.
Does anyone know whether you can adapt the driver's door latch to operate with a key lock like the passenger side?