What should one who forgot to offer the second Sajda during congregational prayer, and remembered it before the end of the prayer do?
All perfect praise be to Allah, The Lord of The Worlds. Whoever forgets a pillar of prayer while in congregation must follow the lead of the Imam, and after the latter offers Tasleem, he should offer one Rakah, then perform Sujood As-Sahw (prostration of forgetfulness). 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 for a woman to visit the doctor while in her `Iddah (waiting period)?
It is permissible for her to do that during day time, but it is impermissible for her to leave her house at night except for a sound reason. And Allah Knows Best.
Is it permissible to make up for the missed fasts of the deceased?
A deceased`s missed fasts should be made up for by his/her guardian. It is also permissible to make up for the missed fasts of a deceased relative, and to pay a ransom in expiation for the latter`s missed fasts, which is feeding a needy person for every missed day. However, the guardian`s permission need to be sought by the non-relatives of the dead to fast on his behalf. And Allah Knows Best.