fix memory leak in Java_java_io_File_lastModified (exposed in debug mode)