Revert "Optimized ARM RWSEM algorithm"

This reverts commit fc6ec5242dba84f78e0ee4ca3fb1d6e25c162c5a.