Revert "Optimized ARM RWSEM algorithm"

This reverts commit 5c8a5abc4cd25ab3dab11f0260d9d362c42696ae.