Constraints on the value of the fine-structure constant from gravitational thermodynamics