The act of locking a transaction output is not a blockchain-level event and only occurs internally within a node's wallet. The purpose is to ensure that this transaction output is not spent by other APIs, such as send. So you can unlock it at any time using the lockunspent command, passing true for the unlock parameter.