On Kelvin's formula for torsion of thin cylinders