avformat/avio: support io stat callback