lock for circuit