add a lock whose value is the tx-id
add lock whose key is the tx-id