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.
Someone asked me to pay off his debt on his behalf as a loan, without any compensation. When I went to the creditor, he told me that if I paid the full amount at once, rather than in installments, he would give me a certain discount. Is this permissible? And if he applies the discount, to whom does the deducted amount belong?
If part of the debt is paid and the creditor forgives the remaining amount, the waiver is valid, and the remaining debt is no longer the responsibility of the original debtor. The person who paid the debt on behalf of another has no right to claim any portion of the original debt. And Allah Knows Best.
What is the ruling on determining the sex of the baby whether through killing the female spermatozoa, or any other way in order to have a male?
If it is done through having a certain type of food, taking a certain type of medication, or organizing the time of the marital relation, then it is permissible.
Is it permissible to offer prayer at home, or should it be offered in the mosque?
All perfect praise be to Allah, The Lord of The Worlds. It isn`t preferable for the man to pray at home as praying in the mosque is twenty seven times more rewarding. Therefore, this should motivate him to offer prayers in the mosque. And Allah Knows Best.