fix __thread test for Android