Inter-locking automatic lock system