Fix graph config tests under BDB

The BDB edition of graph-config-option-mutability tests failed due to
a transaction held open during graph.shutdown(), which under BDB leads
to an exception and test failure.  Changed the affected tests to be
more careful with their transaction handling and the BDB test now
passes.