e4dcaa6ee9
unlock the mutex, old code confuses some programs when it returns EINVAL. Noticed by: bland
unlock the mutex, old code confuses some programs when it returns EINVAL. Noticed by: bland