SO_REUSEADDR/IPV6_V6ONLY should be set by systemd

Otherwise, setting IPV6_V6ONLY fails since the addresses are already
bound by systemd. SO_REUSEADDR doesn't fail, but is also set by systemd.
Fix brace style after if and for