Gribov horizon in the presence of dynamical mass generation in euclidean Yang-Mills theories in the Landau gauge