use spinlocks instead of mutexes

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>
implement ring example

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