loopback-setup: correctly set flags and scope for ipv6 address
rtnl: correctly get the size of data to be appended

This fixes:
  systemd[1]: Failed to configure loopback device: Numerical result out of range
remove unused variable