Probing the Coherence of Solid-State Qubits at Avoided Crossings