Kinetic equation method for problems of viscous gas dynamics with rapidly oscillating density distributions