Opentelemetry.LockGlobal lock.
A global lock, modifiable by the user
Set a pair of lock/unlock functions that are used to protect access to global state, if needed. By default these do nothing.
Call f() while holding the mutex defined set_mutex, then release the mutex.