fix(ext/napi): track pending finalizers by identity (#36551)