test: Start libvirt event handler after initialization
test: Start libvirt event handler after initialization

In the event handler callback for libvirt events, we access members of
the event handler object. We have to make sure we initialize
all of these before we access them in the callback function, since
a callback can be triggered at any time from other libvirt domains
on the system.

Closes #2965
Reviewed-by: Stef Walter <8a7fbf0f15d3ad982af54ef28f5c117d2494b76c@redhat.com>

sgallagher/cockpit,michalskrivanek/cockpit,mareklibra/cockpit,SotolitoLabs/cockpit,cockpituous/cockpit,deryni/cockpit,mareklibra/cockpit,michalskrivanek/cockpit,arilivigni/cockpit,larskarlitski/cockpit,dperpeet/cockpit,mvollmer/cockpit,larskarlitski/cockpit,cockpit-project/cockpit,jscotka/cockpit,stefwalter/cockpit,matobet/cockpit,moraleslazaro/cockpit,matobet/cockpit,sgallagher/cockpit,moraleslazaro/cockpit,garrett/cockpit,harishanand95/cockpit,martinpitt/cockpit,xhad/cockpit,xhad/cockpit,mvollmer/cockpit,mareklibra/cockpit,FireDrunk/cockpit,cockpituous/cockpit,larsu/cockpit,haiyangd/cockpit_view,vanloswang/cockpit,andreasn/cockpit,garrett/cockpit,harishanand95/cockpit,andreasn/cockpit,deryni/cockpit,moraleslazaro/cockpit,FireDrunk/cockpit,xhad/cockpit,vanloswang/cockpit,arilivigni/cockpit,deryni/cockpit,SotolitoLabs/cockpit,petervo/cockpit,vanloswang/cockpit,sgallagher/cockpit,haiyangd/cockpit_view,larskarlitski/cockpit,petervo/cockpit,larskarlitski/cockpit,arilivigni/cockpit,xhad/cockpit,larsu/cockpit,cockpit-project/cockpit,moraleslazaro/cockpit,vanloswang/cockpit,sgallagher/cockpit,arilivigni/cockpit,cockpit-project/cockpit,andreasn/cockpit,Scribery/cockpit,martinpitt/cockpit,michalskrivanek/cockpit,larsu/cockpit,vanloswang/cockpit,haiyangd/cockpit_view,haiyangd/cockpit_view,dperpeet/cockpit,andreasn/cockpit,dperpeet/cockpit,mareklibra/cockpit,Scribery/cockpit,petervo/cockpit,michalskrivanek/cockpit,garrett/cockpit,Scribery/cockpit,deryni/cockpit,petervo/cockpit,FireDrunk/cockpit,SotolitoLabs/cockpit,matobet/cockpit,Scribery/cockpit,moraleslazaro/cockpit,mvollmer/cockpit,martinpitt/cockpit,cockpituous/cockpit,michalskrivanek/cockpit,stefwalter/cockpit,deryni/cockpit,dperpeet/cockpit,jscotka/cockpit,SotolitoLabs/cockpit,SotolitoLabs/cockpit,arilivigni/cockpit,mareklibra/cockpit,sgallagher/cockpit,Scribery/cockpit,FireDrunk/cockpit,deryni/cockpit,jscotka/cockpit,larskarlitski/cockpit,andreasn/cockpit,michalskrivanek/cockpit,sgallagher/cockpit,deryni/cockpit,moraleslazaro/cockpit,vanloswang/cockpit,harishanand95/cockpit,petervo/cockpit,garrett/cockpit,cockpit-project/cockpit,mvollmer/cockpit,cockpit-project/cockpit,stefwalter/cockpit,dperpeet/cockpit,petervo/cockpit,dperpeet/cockpit,harishanand95/cockpit,mareklibra/cockpit,matobet/cockpit,martinpitt/cockpit,matobet/cockpit,harishanand95/cockpit,dperpeet/cockpit,jscotka/cockpit,larsu/cockpit,harishanand95/cockpit,stefwalter/cockpit,arilivigni/cockpit,andreasn/cockpit,garrett/cockpit,Scribery/cockpit,stefwalter/cockpit,michalskrivanek/cockpit,cockpituous/cockpit,jscotka/cockpit,xhad/cockpit,mvollmer/cockpit,stefwalter/cockpit,cockpituous/cockpit,SotolitoLabs/cockpit,xhad/cockpit,FireDrunk/cockpit,arilivigni/cockpit,larsu/cockpit,petervo/cockpit,mareklibra/cockpit,harishanand95/cockpit,larskarlitski/cockpit,stefwalter/cockpit,moraleslazaro/cockpit,vanloswang/cockpit,haiyangd/cockpit_view,cockpituous/cockpit,larsu/cockpit,Scribery/cockpit,xhad/cockpit,jscotka/cockpit,martinpitt/cockpit,andreasn/cockpit,SotolitoLabs/cockpit,sgallagher/cockpit,matobet/cockpit,larskarlitski/cockpit