Fix `pthread_mutex_lock()` check in test_pthread_cooperation
Merge pull request #849 from Kijewski/issue-844

posix: Fix `pthread_mutex_lock()` check in test_pthread_cooperation