char: fix handling of QIO_CHANNEL_ERR_BLOCK