Merge "Use C++ thread_local rather than libcutils." am: 3f78a9f13a

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1516547

Change-Id: I3ff46652244d99473f32618e6f3624a42e57978a