n_tty: Reset lnext if canonical mode changes