Move GetWeakRefAccessEnabled check from nterp into the cache.

Ensure that all callers do the check.

The check only applies if we have read barriers.
Just by-pass the cache if that is not the case.

Test: run_build_test_target.py -j80 art-gtest-ss-gc-tlab
Change-Id: I9b12c694845277bf3a07719d3fd419538d07ef2c
5 files changed