Spontaneous freezing in driven-dissipative quantum systems