Duplicate a delegate in GC memory and freeze it so that it isn't garbage collected when still referenced from C code.
Pointer to the delegate to freeze
The duplicated delegate which is added as a GC root
Duplicate a delegate in GC memory and freeze it so that it isn't garbage collected when still referenced from C code.