Issue #3293446 by alexpott, daffie: Create less static cache in ExtensionDiscovery during KernelTests (cherry picked from commit 605ec651)