agent: Fix CockpitDBusJson init/dispose race

Closes #834
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>