What is the ruling on someone who perform their prayer after finishing it because they believe they missed a Rak'a, a prostration, or that they did not perform it correctly (thinking their prayer was invalid)?
If he was sure that his prayer is void then reperforming it is an obligation along with figuring out the reason of invalidity so long as this wasn't out of uncertainty. And Allah Knows Best.
Is it a condition that a woman should untie her locks while making Ghusl (ritual bath)?
Ghusl from Janabah (ritual impurity), or menstruation obligates that water reaches the roots of the hair in order for the Ghusl to be valid, but if it doesn`t, then hair locks must be untied for water to reach them, and for Ghusl to become valid.
Is it permissible to pay the Zakah (obligatory charity) for settling the debt of a deceased relative?
It is impermissible to pay the Zakah for settling the debt of the deceased since Zakah is paid to eligible recipients who are alive. As for the debts of the deceased, they are to be settled from the estate before dividing it amongst the heirs, but if the deceased didn`t leave an estate, then it is desirable for his/her heirs to settle those debts if they can afford them. And Allah Knows Best.
Is it permissible for a Muslim physician to specialize in gynecology obstetrics, and what is the ruling on working as such?
Some fields of knowledge are an individual duty while others are a collective one, and specializing in gynecology obstetrics is a collective duty. However, if there were female physicians to treat women, then there is no need for a male gynecology obstetrics specialist to look at women`s Awrahs (private parts) except in necessary situations since the jurisprudential maxim says:” Necessity must only be assessed and answered proportionately.” And Allah Knows Best.