Avoid using hidden-api when running in CTS

Some JVMTI tests attempt to call hiddenapis. This is generally fine on
host but can cause problems when run on CTS. Update the tests to avoid
this.

Test: treehugger
Test: atest CtsJvmtiRunTest993HostTestCases
Test: atest CtsJvmtiRunTest931HostTestCases
Bug: 172263916
Bug: 172313849
Bug: 172313193
Bug: 172351915
Change-Id: I0feaa9565719438e37877c34e971a5a8b5ba3f33
5 files changed