Just a thought!
If you turn on your headlights with both doors closed, do you get an lights warning beeper? If so would indicate problem is with driver door lock mechanism faulty.
If you get no beeper, but then open the driver door, you should then get lights warning beeper, indicating passenger door lock mechanism faulty.
If you never get the beeper...then I dunno
Micro-switches are in the door lock assemblies.