XWIKI-11163: Cache wiki based configuration sources
Also made MockitoOldcoreRule support fully mocked environment