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