Lasing and transport in a quantum-dot resonator circuit