fix GC safety issue in MyClasspath::updatePackageMap