[Git][ghc/ghc][master] rts: Fix a deadlock with eventlog flush interval and RTS shutdown