lxd/api/1.0: Wait until LXD fully started before applying API changes in doApi10UpdateTriggers
lxd/api/1.0: Wait until LXD fully started before applying API changes in doApi10UpdateTriggers

This should prevent a crash where tasks have not been initialised yet.

Fixes #9006

Signed-off-by: Thomas Parrott <6b778ce645fb0e3dde76d79eccad490955b1ae74@canonical.com>

lxc/lxd,hallyn/lxd,hallyn/lxd,atxwebs/lxd,lxc/lxd,hallyn/lxd,lxc/lxd,hallyn/lxd,stgraber/lxd,atxwebs/lxd,atxwebs/lxd,lxc/lxd,stgraber/lxd,hallyn/lxd,stgraber/lxd,stgraber/lxd,lxc/lxd,atxwebs/lxd,hallyn/lxd,lxc/lxd,stgraber/lxd,stgraber/lxd,stgraber/lxd,lxc/lxd