Linearization of Z2 lattice gauge theory in four dimensions