netifd: Fix some race-conditions in interface handling