akonadi_control: announce new Resource once both services are registered
Make sure that we don't emit agentInstanceAdded until the new Resource has
registered both it's Agent service name and Resource service name.
Testrunner: wait until all jobs are done before aborting setup
When resource setup fails for any reason, we must wait for the remaining
jobs to finish before shutting down Akonadi and terminating the testrunner.
Otherwise the next scheduled job gets executed and causes a new Akonadi
instance to be launched through DBus activation. This instance is not
managed by the testrunner though, so it does not ever get terminated,
causing ctest to hang.