Move check_whether_*port_reachable() to a scheduled callback, not once-per-second