Correlation between lasing and transport properties in a quantum dot-resonator system