When a mutex could not be unlocked, the rm call in mutex_unlock()
writes an error message directly to stderr. However, the function
should only return an error without writing to stderr.
This commit modifies mutex_unlock() so that it does not write to
stderr.