When did it become legal to discriminate against people on the basis of gender? When Canada got its Charter. That's what the SCC says. The protections against discrimination are only for "historically disadvantaged groups."
Your second question about the "X" is very astute - all male students should begin marking their gender as neutral.