avfilter/buffersink: return EOF if closed link in av_buffersink_get_frame_flags()