[PATCH v3 04/13] ch: refactor virCHMonitorBuildDiskJson