Revert "optimized ARM RWSEM algorithm"

This reverts commit b79359215edb0c6ac4cb746f2e4c3e3d0d137851.