[GHC] #8578: Improvements to SpinLock implementation