Guard the assembly cache against concurrent modification.

AssemblyResolve may be called on any thread.