Comparison of static and light-induced thermal hystereses of a spin-crossover solid, in a mean-field approach†