A new T-compatibility condition and its application to the discretization of the damped time-harmonic Galbrun's equation