What you need to look at are the wires in the driver's door that make contact when the key is turned. They can get brittle and frayed over time.
Try locking from the trunk and passenger's door. If it works fine, then you don't have a vacuum leak and have narrowed your problem down to the driver's door. Vacuum leaks are not very common in 124's, at least MUCH less so compared to 123's!