rdbms: make connection counting logic in LoadBalancer less stateful