[GHC] #8029: batch-mode recompilation checking sometimes fails