Adiabatic dynamics in open quantum critical many-body systems