use ticket lock for work queue

Link: https://github.com/GeneAssembly/biosal/issues/290
Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>