Fix native crashes due to prematurely GC'd ObjC objects