Fix OpenMP numthreads code.