Deadlock in RPC server