Parallelizable job queue with locking functionality