Sudden birth and sudden death of thermal fidelity in a two-qubit system