make sure sinsp_thread_manager::remove_thread doesn't bring the main thread reference counter below zero