android: fix pinning non-local ref to Nit objects from Java