Declare the graph mutex.
Macros to abstract returning from a function holding locks.