Defines a C++-only spin-lock implementation, built entirely on top of Starboard atomics and threads. It can be safely used by both clients and implementations.