Jarzynski’s theorem for lattice gauge theory