$Z_2$ Massive Axions, Domain Walls and Inflation