[delegate] Improve trampoline caching

It'd be nice to unify this with mono_create_delegate_trampoline_info (), they share most of the code.