thread-safe

Strip thread-safe updates according to request from DQM:
https://hypernews.cern.ch/HyperNews/CMS/get/dqmDevel/2214.html

and removed static variables as suggested by @deguio from #4069