[VOL-5383] - release lock on failure in initPmConfig

Change-Id: Idc66882b2be36765a1f236a22b85a3fa56ed4c2e
Signed-off-by: Sridhar Ravindra <sridhar.ravindra@radisys.com>
diff --git a/VERSION b/VERSION
index 4f9b57b..80e646a 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-3.6.1-dev1
+3.6.1-dev3
diff --git a/rw_core/core/device/agent_pm_config.go b/rw_core/core/device/agent_pm_config.go
index b939007..a63bb01 100644
--- a/rw_core/core/device/agent_pm_config.go
+++ b/rw_core/core/device/agent_pm_config.go
@@ -96,6 +96,7 @@
 	cloned := agent.cloneDeviceWithoutLock()
 
 	if !agent.proceedWithRequest(cloned) {
+		agent.requestQueue.RequestComplete()
 		return status.Errorf(codes.FailedPrecondition, "deviceId:%s, Cannot complete operation as device deletion is in progress or reconciling is in progress/failed", cloned.Id)
 	}
 	cloned.PmConfigs = proto.Clone(pmConfigs).(*voltha.PmConfigs)