Fix reflection access check for attached native threads.

Bug: 15539150

(cherry picked from commit 3bd7a6c1716935e758f230e2f199128cb3c28b42)

Change-Id: If7f6e023ef5a38220329cf5644e3a2af12cc1495
3 files changed