CA-137766: Add GC stats reporting

rrdd was erronously reporting its own GC stats as xapi's - this code is
adapted from the code removed from rrdd.