[delegate] Improve trampoline caching

This should now be fixed with commit https://github.com/ludovic-henry/mono/commit/cf6a9e19da4b133300e51f9bc0027301a38c1d5b