netifd: Fix segfaults in IPv6 prefix handling