improved RPC load-balancer code

* fixed a deadlock in ThreadingRPCLoadBalancer
* simplified ThreadingRPCLoadBalancer code
* updated GreenRPCLoadBalancer