added missing synchronize in ManagedServiceFactory's updated method (fix in progress)

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@937616 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/AbstractDecorator.java b/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/AbstractDecorator.java
index 40fe7cd..16f23d6 100644
--- a/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/AbstractDecorator.java
+++ b/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/AbstractDecorator.java
@@ -48,7 +48,10 @@
     // callbacks for FactoryConfigurationAdapterImpl
     public void updated(String pid, Dictionary properties) throws ConfigurationException {
         try {
-            Service service = (Service) m_services.get(pid);
+            Service service;
+            synchronized (this) {
+                service = (Service) m_services.get(pid);
+            }
             if (service == null) { 
                 service = createService(new Object[] { properties });
                 synchronized (this) {