Collapse–revival of squeezing of two atoms in dissipative cavities*