Revert "Revert "Optimized ARM RWSEM algorithm""

This reverts commit 995b9b9729f7732f0221523c24db6d881ed42dfe.