Protect broken code against native crashes.

It doesn't make any sense to access Matcher or BreakIterator concurrently from
multiple threads, but we shouldn't crash in native code.

Bug: http://code.google.com/p/android/issues/detail?id=41143
Change-Id: I5d0ed97be50ffb7c6cc281ac6293cf82f17e7b80
4 files changed