Need to release lock for nested resolves. (FELIX-2986)


git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1140641 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/StatefulResolver.java b/framework/src/main/java/org/apache/felix/framework/StatefulResolver.java
index 83955d6..af42594 100644
--- a/framework/src/main/java/org/apache/felix/framework/StatefulResolver.java
+++ b/framework/src/main/java/org/apache/felix/framework/StatefulResolver.java
@@ -461,6 +461,7 @@
             // the case if a resolver hook does something bad.
             if (m_isResolving)
             {
+                m_felix.releaseGlobalLock();
                 throw new IllegalStateException("Nested resolve operations not allowed.");
             }
             m_isResolving = true;