[FIXED JENKINS-18369] Jenkins lock metrics.xml file