After years of legislative limbo, Uganda passed a law Friday offering a life sentence for “aggravated homosexuality.” Experts say Western activism may be making matters worse for African gays.