I have seen simular locking systems before. It is a good design, but like mentioned before, there is a portion of the lock missing. And I can see one flaw that would render the lock unable to function, under the right condition. First I'd look at changing the relay to a DPDT, this will be apparent why in next few sentences. I would add a 555 "one-shot", set for a couple of seconds. I'd tie its output into the reset portion of your 4013's. And to trigger the "one-shot" would be the second pair of contacts from the relay. When they close they should start the timer and thus resetting the lock system. Oh, and the flaw I notice, its the LED in circuit with the relay. If this were to burn out, and it looks like it would (no current limiting resistor), then the relay would not be able to complete its circuit. I'd parallel the LED and use about a 330ohm ¼w 5% resistor and take the relay strait to ground.