core: update hostname once at startup

NMPolicy stores the last hostname set in priv->cur_hostname and checks
if it changed before notifying the DNS manager.

_set_hostname() should be called one time early during startup so that
the priv->cur_hostname gets initialized without triggering a DNS
58 jobs for bg/500vlans in 54 minutes (queued for 5 seconds)