Evolution has also created a percentage where every species has about the same number of anything. I saw something about a resort island where monkeys can easily obtain alcohol, and their preferences, number of alcoholics, etc. are identical to ours. Watch it if you want, it's pretty cool.
YouTube - drunk monkeys
You also talk about homosexuality like it's a gene that's passed down and was fine tuned by nature, no one knows this. It could just be a mother's anti-bodies going crazy or many other causes that aren't genetically supposed to happen. Look at extreme mental and physical retardation in babies. Is this a gene used to help the human race? Insulting example, but I'm just saying that some things in nature aren't perfect.
If homosexuality is a genetic advantage for a species and you are right, I don't think population control would be the reason. Humans thrive in numbers. I think it would be to help balance out the playing field, making sure everyone has a partner and nothing more. Like if a mother made too many males and they were all straight, things might get too hectic.