GROOVY-6055: Static context should be set to false when visiting closures