[added to the 4.1 stable tree] n_tty: fix EXTPROC vs ICANON interaction with TIOCINQ (aka FIONREAD)