Optimized ARM RWSEM algorithm

This reverts commit 2a9bdb5b75252187962fecf77dba58d88b51e83a.