Remove equality check when replacing DocumentTree values by version to prevent conflicts with optimistic locks

Change-Id: I1325955828a562dc29261abdd62fa37463f84625
diff --git a/core/store/primitives/src/main/java/org/onosproject/store/primitives/resources/impl/DefaultDocumentTree.java b/core/store/primitives/src/main/java/org/onosproject/store/primitives/resources/impl/DefaultDocumentTree.java
index 295635d..526799c 100644
--- a/core/store/primitives/src/main/java/org/onosproject/store/primitives/resources/impl/DefaultDocumentTree.java
+++ b/core/store/primitives/src/main/java/org/onosproject/store/primitives/resources/impl/DefaultDocumentTree.java
@@ -139,10 +139,8 @@
         checkRootModification(path);
         DocumentTreeNode<V> node = getNode(path);
         if (node != null && node.value() != null && node.value().version() == version) {
-            if (!Objects.equals(newValue, node.value().value())) {
-                set(path, newValue);
-                return true;
-            }
+            set(path, newValue);
+            return true;
         }
         return false;
     }