Add a C-bindings-compatible read lock type for NetworkGraph