Getting rid of the last thread local variable, keeping a global reference to the Java VM instead (since I don't use it from the Lua side for creating multiple Java VMs, only the other way around).
WARNING - Will break if you try to use it from multiple JavaVMs running in the same process!