jni: Pass class to GC in NewObjectArray

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