add mutex support when spin locks are not available

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