Risk and inequality in rural Thailand