Hundreds of prisoners set fire to a Thai jail during a two-day riot over the handling of a coronavirus cluster, with some inmates wounded as officers sought to restore order.