Add two transaction for locking and unlocking