You can do it when you exit the car with the drivers door open by pressing the lock button on the driver's armrest. Basically the same concept since one door is open.
Haven't tested it to see if it only does that if the drivers door is open, not passengers.