SUCCESS, or a negative value on error, in which case the error code is found in iserrno.
unlock the specified record