[Git][ghc/ghc][wip/mangoiv/ghc-9.12-bp] 2 commits: Fix race condition between flushEventLog and start/endEventLogging.