Near-infrared mass-to-light ratios in galaxies: stellar mass and star formation in the heart of the Whirlpool