[GHC] #9377: forkProcess unnecessarily sets wait_foreign in hs_exit_