Ehcache update check is only enabled when running in a web container, but not for test-app or other scripts

Details

Description

This is similar to GRAILS-5949 but is not a regression of that. We correctly disable the update check when running in a container since the system property is set in GrailsContextLoader.initWebApplicationContext. But that isn't used when running regular scripts.