Is it permissible to say: "O Allah, by the status of the saints and the righteous, and our master Muhammad, peace be upon him, grant us the ability to reach Ramadan"?
What is mentiond by the righteous predecessors that they used to say: "O Allah bless us in Shaba'an and Rajab and give us the ability to reach Ramadan." [Shoa'ab Al-Iman/vol.3/pp.375]. And Allah Knows Best.
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 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.
Is it permissible for one to shake hands with his uncle`s daughter?
No, it isn`t because he is a non-Mahram (Marriageable) to her.