Fix the max_hosts check to properly reclaim expired hosts when at capaci...

...ty