vlib api: move wrkr rpc flushing to vlib