Fix #15921: Unset $t_hosts after use