pthread: mutex - return the right values
Merge pull request #838 from mehlis/posix-mutex-fix

pthread: mutex - return the right values