I'm drawing a blank here, but what do you mean "state-sanctioned castration"? Do you have examples?
The only thing I can think of is the chemical castration that is done to sex offenders or to treat cancer, but for the most part, this is done to adults, and not children.
Or are you referring to something else that would affect children of both sexes?