fix GC safety bug in jvmFillInStackTrace

This fixes spurious Trace test failures with openjdk-src build.