nitc: add GC pinning support to the Java FFI