Move debugged-tgid hack into ReplaySession.