thorium: fix race condition when spawning an actor

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