avfilter/af_afftfilt: add threads support