Subscribe to dbus events before writing unit file

We don't have to manually refresh the unit state if we simply subscribe to its events before creating it.