Nigeria gay law 'risks democracy'