A local formulation of lattice QCD without unphysical fermion zero modes