vlib: flush rpcs on worker sync

Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I89624254649089e497d119eb6cee2cecf3dc11f3
diff --git a/src/vlib/threads.c b/src/vlib/threads.c
index b675b88..03fda38 100644
--- a/src/vlib/threads.c
+++ b/src/vlib/threads.c
@@ -1519,6 +1519,7 @@
       u32 thread_index = vlib_get_thread_index ();
       vlib_rpc_call_main_thread (vlib_worker_sync_rpc, (u8 *) &thread_index,
 				 sizeof (thread_index));
+      vlib_worker_flush_pending_rpc_requests (vlib_get_main ());
     }
 
   /* Wait until main thread asks for barrier */