Thermodynamics of oscillating neutrinos