Revert "Revert "Optimized ARM RWSEM algorithm""

This reverts commit c514859ec24a2a2c2a9f2b35a7a7e9fe22068b39.