That’s just nuts!
Why? Because "the Church" did no such thing; and it's no fun putting the blame on psychiatrists.
The fact is that more than a few psychiatrists of the late 19th and through most of the 20th centuries, acting on elaborate eugenicist and behaviorist beliefs, committed systematic aggressions upon people with persistent sexual and other disorders; homosexuals were among their victims, though not the only ones.
It was the Catholic Church's doctrines which were then, and are now, the main bulwarks of resistance against eugenicist and behaviorist "therapetic abuse" of medically dependent persons.
If this indeed happened (and we know it happened because of unnamed sources 60 years later?) it would be because that institution, even if calling itself "Catholic," was staffed by people promoting and acting upon the secular psychiatric ideologies of the day, and not the doctrines of the Catholic Church.
(BTW, psychiatrists and their associated surgeons still castrate boys: but now it's done to cure [accommodate, adjust, restructure] transsexuals, and not homosexuals. And it's presented as humane, enlightened, and progressive: a right, not a mutilation.)
These Dutch psychiatrists: it's a little late to say "hang 'em" 60 years later, but God knows they may all presently be in hell.