While Indonesia is often considered a moderate Muslim nation, police have been detaining and arresting gay men over alleged “sex parties” and the government is considering making homosexuality illegal.