The freezing transition in disordered non-equilibrium systems