Spin–orbit–controlled flat-band transition, thermodynamic and magnetic response in a disordered Lieb-5 lattice Nature