Unless you have blown the fuse, it is unlikely to be the main circuit.
Probably, more likely, it's the front driver's side door lock actuator. They eventually wear out. As I mentioned in one of my prior posts, these actuators are a combination switch and solenoid, mechanically tied together via a plastic rod linkage. When they start wearing out, the solenoid does not fully move in either the open or close position, so the switch attached to it doesn't fully open or fully close either. When that happens, the whole system jams up, or any attempts to unlock will suddenly revert back to locking. At least that's what happened to my 2009 Aveo. In my experience, it would probably be a good idea to replace both front driver and passenger side actuators. Be warned, it's a bit of a pain, because the working space inside the door panel is minimal. I've attached the RockAuto link to the driver's side actuator.
https://www.rockauto.com/en/moreinfo...=13257&jsn=464
Deano