How could we cancel/release a lock before the end of the transaction? Any idea how it could be implemented?