Lock a reference.
A refdb implementation may provide this function; if it is not provided, the transaction API will fail to work.
0 on success, a negative error code otherwise
See Implementation
Lock a reference.
A refdb implementation may provide this function; if it is not provided, the transaction API will fail to work.