[CA-121427] MetricUpdater threading/locking model is broken (making plan in CP-6997) -- Fixed possible threading issues, improved performance

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
Merge branch 'master' of git://hg.uk.xensource.com/carbon/trunk/xenadmin