avformat/concatdec: Use correct stream count on close