Make class BasicItem thread-safe
Small changes on MetricsRecord::MetricsRecord()