Add async behavior to rpc client

Simulate RPC client doing asynchronous work before waiting for server reply.

Signed-off-by: Francis Giraldeau <francis.giraldeau@gmail.com>