net: Avoid gcc'ism in net_host_device_add