avcodec/pthread: fix pthread API when --disable-thread