[C++] Workaround for data race on std::ctype<char> used in regex
[C++] Workaround for data race on std::ctype<char> used in regex

* See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77704

* By creating static object its constructor executes
  preinitialization of global locale facet internal cache

* Avoids TSAN reported data race when using std::regex code e.g.
  in MessagingQos as in some APIs.

bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr