[engine] Keep native modules safe from GC