fix flushing parent of SSLStream when SSLStream is already flushed

this is important after accepting an SSL connection if the parent
is buffering