I am a muslim and out to my family, though I live in the USA, so i haven't had the experience of what it would be like to come out in a Muslim majority country. However, I do know many muslims who are out in Pakistan, UAE, Algeria, and Egypt. (I travel a lot for work, and get in touch with local LGBT groups where ever I go.
One interesting thing i have noticed in these muslim countries, is that for most of the out muslims, the initial reaction of their families was almost always negative, and then gradually accepting. In fact, in many cases, the families work hard to cover and protect the gay person in their midst, preferring to keep it quiet and safe rather than break the relationship with him. This is in marked contrast to many stories I have heard in USA, supposedly more liberal, where so many kids get kicked out by their parents when they come out to them. NYC has thousands of such kids living on the street.
One thing to keep in mind is that gays find it hard in every religion, and in every country where religion shapes the attitudes of the populace. Predominantly Christian countries such as Nigeria, South Africa, Zimbabwe, Uganda, Angola, are violently homophobic, and some are moving towards criminal prosecution of gays by writing anti-LGBT laws into their books. It is no easier to be gay in Hindu India than it is to be gay in neighboring Muslim Pakistan.