[OPENENGSB-3666] Added read/write lock mechanism to the graph db class

http://issues.openengsb.org/jira/browse/OPENENGSB-3666