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

Well there are currently still to many popular games which rely on getting EINVAL
returned.....so we need to leave it currently like it is till google may
officially change it and apps are forced to change their code

This reverts commit 484f3ba33d90cc698cc04afd5062f21de9ae299e.

Change-Id: I31f0435138e8910da73a98872165fc9558efb6de
Revert "Remove harmful attempts to be helpful in pthread_mutex functions."

Well there are currently still to many popular games which rely on getting EINVAL
returned.....so we need to leave it currently like it is till google may
officially change it and apps are forced to change their code

This reverts commit 484f3ba33d90cc698cc04afd5062f21de9ae299e.

Change-Id: I31f0435138e8910da73a98872165fc9558efb6de