make metrics threading lock global