java: klass::load_class() helper function

Add klass::load_class() helper function that loads a class by a constant
pool index.

Signed-off-by: Pekka Enberg <penberg@kernel.org>
java: Support per-class classloaders

Signed-off-by: Pekka Enberg <penberg@kernel.org>