lavc: update the fallback versions of ff_thread_*

Fixes build without threads after
759001c534287a96dc96d1e274665feb7059145d.