Update SpringApplicationContextLoader so that setRegisterShutdownHook is false for tests. Fixes gh-3763