Mark managed callback functions if they're only used in the dynamic registrar,
and only initialize the corresponding delegate if the dynamic registrar is
available.
This will make it possible for the linker to remove those managed functions if
the dynamic registrar is being removed.
We already have the information we need to generate these function
declaration, so this prevents the need for keeping information in two
different places up-to-date.