Pressing what door button? The key lock on the driver's door lock can lock all the doors using the door lock motors in each door, but only unlocks the driver's side door.
Inserting the key in the ignition, starting the car and going about 3 mph locks all the doors. When stopping and removing the key, the doors unlock.
Then you have the the lock and unlock door switches on the dash. Those should work all the time for locking. But if you hit the unlock switch on the dash, come to a stop, and start moving again, the doors will automatically lock again. This is not programmable by the user.
If you manually push down the door lock buttons on all four doors, they should stay locked, even after closing the last door, driver's side door locks all four doors. If you are in the back seat, and lock with the child safety lockout engaged, you cannot get out of the rear door, have to try to crawl over the front seats with those high head restrains to get out.
Then you have the remote that should lock and unlock all four doors, which doors that unlock is user programmable, but the door lock feature cannot be disengaged. Provided the remote is not in the ignition switch.
Never seen such a complicated door locking and unlocking feature before this Cruze. What is common is four door locking and unlocking motors that have to be in good working order. A DC brush type motor that drives a rack with a pinion gear that has its polarity reversed to either lock or unlock. This is controlled by the body module computer that has its firmware stored in flashram. It fires either the lock or unlock relays in that fuse box under the hood. With all that constant door locking and unlocking, those relay contacts could be bad. Any of these problems could prevent you from locking your car.
Pushing all four door lock buttons down should lock your car manually. By feel, the driver's door key does manually release the that doors lock, by locking activates the automatic system.
When I think about door locks on the Cruze, my brain gets fried. Haven't tried disconnecting the battery yet, but feel I still could get in with the driver's outside lock.
When I leave my Cruze for even just a second, make sure the keys are in my pocket, system could go crazy and keep me locked out.