Correlation-Function Method for the Transport Coefficients of Dense Gases. I. First Density Correction to the Shear Viscosity