avformat/avio: Fix EOF handiling of ffurl_read_complete()