Revert "Revert "Revert "Remove harmful attempts to be helpful in pthread_mutex functions."""

Some games need this...

This reverts commit 4cc1cdfb80aedf9e13ec2bf72c423ee709ebcf68.