Revert "Optimized ARM RWSEM algorithm"

This reverts commit 9298ebbb44a7b4373990c120e038a250d1406744.