rts: Fix data races
Here we fix a variety of consequential data races in the RTS:
- Ensure that
atomicWriteIORef
is used when manipulating the global timer manager state - Ensure that thread blocking state mutation is protected by sufficient barriers
Depends upon:
Edited by Ben Gamari