lock node when spawning

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