[javalib] Close descriptors after reading classfile. Ref HaxeFoundation/haxe#2916