src/channel-type.c (ptob_flush): Improve.

* src/channel-type.c (ptob_flush): Improve.
  (ptob_close): Flush a port before closing its SSH channel.