If your vehicle has power door locks, it will have this feature. If you press the power door lock switch when the key is in the ignition and any door is open, all the doors will lock and the driver's door will unlock.
Be sure to remove the key from the ignition when locking your vehicle.
The lockout protection can be overridden by pressing and holding the power door lock in the lock position for three seconds.
Chevrolet Cobalt Service & Repair Manual. Door Handle
Exterior
Front
1.
Remove front door trim panel as outlined
in "Door Trim Panel."
2.
Remove front door water deflector.
3.
Remove three front door handle retaining
screws, Fig. 1.
...