replace the lock tag by a lock key