[ONOS-8130] Correct and cosistent access to message-id counter in NetconfSessionMinaImpl

Change-Id: If27435c5ff9e1855696246326243eabe92a20335
diff --git a/protocols/netconf/ctl/src/main/java/org/onosproject/netconf/ctl/impl/NetconfSessionMinaImpl.java b/protocols/netconf/ctl/src/main/java/org/onosproject/netconf/ctl/impl/NetconfSessionMinaImpl.java
index 22bb2b8..f45c877 100644
--- a/protocols/netconf/ctl/src/main/java/org/onosproject/netconf/ctl/impl/NetconfSessionMinaImpl.java
+++ b/protocols/netconf/ctl/src/main/java/org/onosproject/netconf/ctl/impl/NetconfSessionMinaImpl.java
@@ -580,7 +580,7 @@
 
         String rpc = request;
         //  - assign message-id
-        int msgId = messageIdInteger.incrementAndGet();
+        int msgId = messageIdInteger.getAndIncrement();
         //  - re-write request to insert message-id
         // FIXME avoid using formatRequestMessageId
         rpc = formatRequestMessageId(rpc, msgId);