avcodec/ffv1dec: reorganize thread init/update