add mutex in notify_death

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