[Git][ghc/ghc][ghc-9.14] ghc-heap: Fix race condition with profiling builds