In Egypt and Tunisia, gays and their allies worry that conservative Islamists, whose credo includes firm condemnation of homosexuality, could…