Unlock the global mutex when returning after a failure.