ART: Add JIT cache race test

Adds a test for the JIT code cache that attempts to trap races between
threads generating code and executing it.

Bug: 38417984
Test: run-test --jit 707
Change-Id: I408b2680b1d266ebe624d6e39113f0261d538e8a
8 files changed