A Gronwall-type lemma with parameter and dissipative estimates for PDEs