rdbms: fix connection reuse logic in LoadBalancer for postgres