n_tty: Fix EOF push index when termios changes