The one-block property in varieties of semigroups