rdbms: make LoadBalancer::doWait() cast $timeout to an integer