A dissipative system arising in strain-gradient plasticity