Add a lock in class MetricsSystem's public methods
Update config file for log