Glass transition in the quenched and annealed version of the frustrated lattice gas model