[TSAN] Fix data race with base::i18n text direction.

The global g_icu_text_direction could be read/written from
any thread that called base::i18n::IsRTL resulting in a data race.
Guard read/writes with a mutex.

BUG=695929
TEST=base_unittests

Review-Url: https://codereview.chromium.org/2716003002
Cr-Commit-Position: refs/heads/master@{#454108}


CrOS-Libchrome-Original-Commit: d27e590ad6471e444e164597ee22a80c7801451d
1 file changed
tree: d97e98561e9381d909162dd4d28407fa17c845cc
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/