This is a ubiquitous tactic at the highest level of law enforcement.
I would add that from my experience with the Gulf, at least, the ME has created one of the gayest places on Earth. The separation between genders has led to a disproportionate number of women and men semi-openly sleeping with their own gender in a kind of "don't ask, don't tell" way.
It feels like the "punish them for being gay" is used, like the poster below you mentions, as a way to turn the screws on you when they need something to use against you for another reason.