You need to cut a wire from the security module to be able to lock the doors when the car is started. Let me find the wiring diagram.
EDIT:
The pink/black wire circled at the security module is the ignition on sensing wire. If you cut it, it will allow you to lock the doors with the remote when the car is started. It will not allow you to lock the doors when the door is open, however.