What is the ruling on Friday Ghusl (ritual bath)?
Friday Ghusl is a confirmed Sunna (Prophetic tradition) even if a person wasn`t in a state of Janbah (ritual impurity), or physically unclean. However, one who doesn`t make Ghusl on Friday isn`t sinful for the Prophet (PBUH) said: "It is good for a Muslim to make ablution for Friday prayer, but it is better to make Ghusul. [At-Tirmithi & Abu Dawood].
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 wearing a cap permissible for boys, or girls?
All Perfect Praise is due to Allah, The Lord of The Worlds.
In principle, anything is permissible sol long as there is no Sharia evidence prohibiting it, thus wearing the cap by boys is permissible as long as it isn`t done in imitation of the disbelievers. Moreover, a Muslim woman should avoid all that which attracts the attention of men because whatever leads to the forbidden is forbidden. And Allah Knows Best.
Is it permissible for one to masturbate in order not to commit fornication?
This is called committing the milder of the two evils such as eating a carcass in fear of death, and this happens when committing fornication is very likely to occur.