make lwm2mclient more non-IPv6 friendly

when using the lwm2mclient on a machine with no ipv6 support, it fails because it tries to get an *IPv6* udp socket on port 5683