tr2: stop leaking "thread_name" memory