Thread safe changes for HcalDbService class