try tgetattr() on both master and slave pty, retrying after failure (with increasing intervals)