GROOVY-7005: Compile bug with @Synchronized("lockname") and undefined lockname