Effect of Active Photons on Dynamical Frustration in Cavity QED.