[GHC] #13052: unsafePerformIO duped on multithread if within the same IO thunk