correctly free thread_data options at the topmost parent process