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

This reverts commit 39691599c5af80f0b2fc91985ca49acc39ae4b93.
Revert "ARM: Change dmb domain for bionic_atomic_barrier()"

This reverts commit 6331338a8241f6ffea25e0d2463d687fa06c614c.