Static link gtests with ART libraries

Add new build targets `libart-for-test` and `libart-compiler-for-test`,
because building tests with LTO takes too much RAM and there is no way to
override LTO enabled in libart(-compiler). See: b/277207452
Add new *-for-test_static_defaults which use libart(-compiler)-for-test.
After this change, gtests will have access to all libart(-compiler)
symbols, which will allow merging libart and libart-compiler together
and further reducing the amount of public symbols.

Bug: 261703065
Bug: 247108425
Test: atest art_standalone_*_tests
Test: m aapt mts && mts-tradefed run commandAndExit mts-art-shard-03
Test: m test-art-host-gtest
Test: m art-check-testing-apex-gen
Change-Id: Ide03609e78af5441b6822e5640925e812bec4e11
17 files changed