Extreme Water Loss and Abiotic O-2 Buildup on Planets Throughout the Habitable Zones of M Dwarfs