new ThreadJob class
update pthread manager, convert job queue to contain ThreadJob s
update all openmp structured blocks with pthread
update two openmp critical sections using mutex lock