ffmpeg: pass --enable-pthreads

Fixes #16654.