fix auto threadIdc issue

approved at: https://rbcommons.com/s/OpenH264/r/783/