jni: uniformize how to fetch libvlc_instance_t