Thai junta battles corruption in registering illegal migrants