Fluctuations of work in realistic equilibrium states of quantum systems with conserved quantities