avformat/tls_schannel: fix handling of EOF after avio changes