bugfix: the main thread was not properly reset in sinsp_thread_manager::reset_child_dependencies()