SUCCESS, or a negative value on error, in which case the error code is found in iserrno.
this call will release any records that have been manually or automatically locked by the current process.