Remove struct thread_data