Check kernel version only once in `art::membarrier()`.

Test: run-gtest.sh
Test: testrunner.py --target --optimizing
Bug: 289195653
Change-Id: I659c2371506121220c68b8b0aacdf79fab0056f4
1 file changed