Well.. how long can you keep them locked up? They'll eventually go their way. If you ban marriage, they'll just live together. Not that i support it of course, as long as they keep it to themselves, it's fine.
On the other hand, you have countries like iran, where gays are hanged/killed. And i would assume gays wouldn't be treated kindly in pakistan either...