China detains 380 in month-long Xinjiang terror sweep