Fix long-lived thread name logging.