Dislocations are not in thermal equilibrium. If you calculate the energy of a typical dislocation and enter this into the Boltzmann equation for the thermodynamical probability (exp -E/kT), you get a very low density, much smaller than actual dislocation densities.
For vacancies, the density of the vacancies is directly determined by temperature and the energy with the Boltzmann equation; so they are in thermal equilibrium.