hmmm... does ur car has a central lock switch like in old Satrias? Means got a button to press to lock and unlock. If so, ur it would make things simpler. U can wire a relay to the central lock switch to the foot pedal on the brake and everytime it is pressed, the doors would be lock but it would mean that every time u press the brake, the doors would lock eventhough doors already locked.
If u dun have this central lock switch, then u have to tap the signal on the central lock at the driver's door. I am not sure on how the wiring for this would be. You know when u unlock the driver's door, the whole car's lock would unlock too, that's the one to tap. Once u figured out how this works, then wire a relay like the above to this.