Update ART tests to handle new System.gc behavior

Changed calls from System.gc to Runtime.getRuntime.gc where it was
necessary.

Required for:
https://android-review.googlesource.com/#/c/80253/

Change-Id: I2b0622585da54229a6248e95d40134b6d18598a9
12 files changed