A scoped lock, to be used to protect a code section enclosed within a scope. e.g.
#include <threads.h>