core: add a facility to execute functions on the RIB io_service

refs #4279

Change-Id: I29222053348e5d1737d47c85a59d29280b4b791b
diff --git a/daemon/main.cpp b/daemon/main.cpp
index 4cff13b..056d359 100644
--- a/daemon/main.cpp
+++ b/daemon/main.cpp
@@ -120,6 +120,7 @@
           std::lock_guard<std::mutex> lock(m);
           ribIo = &getGlobalIoService();
           BOOST_ASSERT(ribIo != mainIo);
+          setRibIoService(ribIo);
         }
         cv.notify_all(); // notify that ribIo has been assigned