avcodec/bsf: add a flushing mechanism to AVBSFContext