Try to fix a potential visibility issue on loading a class form a bundle where it seems to be possible that we create two classloaders instead of one.

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@612230 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/searchpolicy/ContentLoaderImpl.java b/framework/src/main/java/org/apache/felix/framework/searchpolicy/ContentLoaderImpl.java
index 574e363..f2f0f14 100644
--- a/framework/src/main/java/org/apache/felix/framework/searchpolicy/ContentLoaderImpl.java
+++ b/framework/src/main/java/org/apache/felix/framework/searchpolicy/ContentLoaderImpl.java
@@ -110,10 +110,13 @@
 
     public Class getClass(String name)
     {
-        if (m_classLoader == null)
+        synchronized (this) 
         {
-            m_classLoader = m_secureAction.createContentClassLoader(this,
-                m_protectionDomain);
+            if (m_classLoader == null)
+            {
+                m_classLoader = m_secureAction.createContentClassLoader(this,
+                    m_protectionDomain);
+            }
         }
 
         try