Long-wavelength behavior of the exchange-correlation kernel in the Kohn-Sham theory of periodic systems