Ensure that callback object is always anchored to prevent the possibility of it being garbage-collected before/while the C callback runs