Speaking as a bi person, I don’t think this is homophobic. This is pretty clearly just the age-old “in bed with the enemy” accusation carried to a crude extreme. And, bonus, it’s an extreme that would make the very homophobic targets of the joke uncomfortable.