Merge "n_tty: Fix n_tty_write crash when echoing in raw mode" into cm-11.0