rts: Fix data-race in hs_init_ghc
As noticed by @TerrorJack, hs_init_ghc
previously used non-atomic
increment/decrement on the RTS's initialization count. This may go wrong
in a multithreaded program which initializes the runtime multiple times.
Closes #22756 (closed).