Make static const in StringMap

StringMap operator[] defines a function local static for an empty string. By converting this to a const static the static analyzer no longer complains about this function.
Merge pull request #1880 from Dr15Jones/makeStaticConstInStringMap

Multithreading fixes -- Make static const in StringMap