[PATCH 5.4 23/54] thunderbolt: Fix use-after-free in remove_unplugged_switch()