Lock-free job queue, supporting job dependencies