#include <thread.h>
Helper class: scoped lock for a spin_mutex – grabs the lock upon construction, releases the lock when it exits scope.