Realization of the mean-field universality class in spin-crossover materials