Make cache of TriggerNames thread-safe

Changed to a thread safe container for the static cache of TriggerNames.