[graph-tool] Graph thread safety