avfilter/curves: support slice threading.