A water-forming NADH oxidase regulates metabolism in anaerobic fermentation