Thermodynamics of the near-extremal Kerr spacetime