GROOVY-6909: @CompileStatic in combo @WithXXXLock transform is broken