Spontaneous CP violation in the minimal supersymmetric standard model at finite temperature