ENG-4687 use AtomicInteger to reduce the number of dead host messages issued in ForeignHost