UN visits boat people detained in Thailand