Clean up ti-stress

Wrap some jvmti calls in scoped accessors that do cleanup and some
other miscellaneous cleanup.

Test: ./test.py -j40
Test: ./test/run-test --host --jvmti-trace-stress 001-HelloWorld

Change-Id: Ide807972903cb25efa38c0d03938d8e43fa89389
1 file changed