Fixed failing spec on locking

GraphMediator locking scenarios with optimistic locking for the graph with children should increment lock_version for the graph if a dependent is changed
     Failure/Error: lambda {
       lock_version should have been changed by 1, but was changed by 0
     # ./spec/integration/locking_tests_spec.rb:88:in