avfilter: Move ff_get_ref_perms_string() to where it is used.