hsuart_tty/hsuart_write: WIP protect against write after close