Mixed-state fidelity and quantum criticality at finite temperature