Do we need/want to support something equivalent to https://en.cppreference.com/w/cpp/thread/scoped_lock ?