Fix sigsegv in check_stream in smbtorture smb2.streams.io