Mayoral frontrunner Zohran Mamdani flashed a beaming smile in a cringeworthy photo with a top Ugandan official who pushed harsh anti-LGBT policies — that included life imprisonment for gay people.