Prison comes with loosing a lot of your rights and liberties. One of last liberties a jailed man or woman has the right to decide no matter who or what is their right to refuse operations on their bodies. Liberties might be few and far between, or at least that is how some people see it the consent to operations is one that cannot be tampered with.
Now if the operation is tied into someone's criminal behavior than I might entertain thinking about pressuring people into having operations by giving them lower sentences or even releasing them from jail. But then it should be a person who can have an operation to stop them behaving violent or to stop them from raping/molesting than yes, we might think about putting pressure on someone to have such an operation with benefits for the prisoner.
Free tube tying procedures should be offered in the free world to stop people from having child after child. Free or greatly reduced birth control pills should be made available for women. Do implants with men and women to prevent them for having kids, make those procedures free of charge.
But forcing women to undergo procedures without freedom to refuse consent (or punish them for not consenting) is several steps too far IMHO.