More run-test build determinism tweaks (part 2)

Also fix couple issues in host and jvm builds.

Non-determinism smali and d8 itself is the only remaining issue.

Bug: 147814778
Test: test.py --host
Change-Id: Icd5722600d9addf7c8a325cdf4a839882da8c302
3 files changed