sd-dhcp-lease: use unaligned read helpers
sd-dhcp-lease: use shared default prefixlen function

Also change the default prefixlen function to only access the first octet of the in_addr.