Quantum metric unveils defect freezing in non-Hermitian systems