Creates a finalizer with the given finalization callback.
callback must be a native function which can be executed outside of
a Dart isolate. This means that passing an FFI trampoline (a function
pointer obtained via Pointer.fromFunction) is not supported.
callback might be invoked on an arbitrary thread and not necessary
on the same thread that created NativeFinalizer.
external factory NativeFinalizer