tty: n_hdlc add buffer flushing