Fix debug/release dependencies on libartbase

We load both the debug and release build when running tests.
The different builds have different layout of some classes,
which can currently result in random native heap corruptions.

Fix the build dependencies to avoid the double loading,
and add runtime check to avoid it in the future again.

Test: test.py -b --host --64
Test: test.py -r --target -t 001-HelloWorld
Change-Id: Ie62f91dc06209c91e25ba5f11c9d61243ac7579d
10 files changed