Revert "Optimized ARM RWSEM algorithm"

This reverts commit 3a4dd63c77a10f63e739797dcd8801f3da022056.