Fix RPC call async problem

See https://github.com/nicokaiser/wamp.io/issues/21
 - Initial fix for rpc race condition.