GROOVY-7030: @Synchronized could allow an explicit static lock to be used for an instance method