netifd: fix crashes triggered by adding/removing wireless devices on reload