[delegate] Improve trampoline caching

generic-virtual.2.exe is now passing with commit https://github.com/ludovic-henry/mono/commit/ba00b234ae17f5189e3831f4c74a55b9d0e66e87