Misc cleanups.

- Make the static mapping const.
- Avoid copying map into a vector just to do an index lookup.
Merge pull request #1196 from ktf/fix-CondCore-CondDB

Multithreading fixes -- Misc cleanups in CondCore/CondDB