improve work stealing code

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