n_tty: do O_ONLCR translation as a single write