omp locks instead of omp critical sections.
fixed job searching algorithm