Lock, call dg(&t) for internal value t, then unlock.
A scoped callback that is called only while this is locked.
See Implementation
Lock, call dg(&t) for internal value t, then unlock.