Fix race within TestRunDisconnectTty