agent: Fix CockpitDBusJson init/dispose race