Fix a bug when using the wifi connect utility from our "First boot" wizard.

Don't run two copies of "/etc/rc.d/netif restart" since they may trample
each other and cause issues.

Also make sure we sync() to disk before restaring the network