KAZOO-2033: if refreshing the DB, retry getting agent status