thread-safe fix

Tracker fixes for July GR, as requested here:
https://hypernews.cern.ch/HyperNews/CMS/get/dqmDevel/2214.html
@leggat might want to be aware as well.