Finite-temperature fidelity-metric approach to the Lipkin–Meshkov–Glick model