Thermal phases of D1-branes on a circle from lattice super Yang-Mills