network: explicitly take down interfaces when configuring network

On reboot, networkd doesn't reconfigure interfaces that are already up. When
writing networking units, stop networkd, take down all interfaces, and then
restart networkd.