Fix false-positive check on ssh_channel_write