Announce service availability on D-Bus after all initialization

This fixes a bug, where in, mapper was announcing the
availability of service prior to initialiazing.

Change-Id: I20b9af7716501dcd93b63f7c60bfc3c2692111c0
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
diff --git a/src/main.cpp b/src/main.cpp
index 90c6340..26b0285 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -452,7 +452,6 @@
     boost::container::flat_set<std::string> iface_whitelist;
     splitArgs(options["interface-namespaces"], iface_whitelist);
 
-    system_bus->request_name(MAPPER_BUSNAME);
     sdbusplus::asio::object_server server(system_bus);
 
     // Construct a signal set registered for process termination.
@@ -841,5 +840,7 @@
                     associationMaps, server);
     });
 
+    system_bus->request_name(MAPPER_BUSNAME);
+
     io.run();
 }