On finite-volume corrections in the thermodynamics of confined charges