Yarn maker Unifi Inc is shutting two production lines and downsizing its recently acquired Kinston, North Carolina facility with the loss of nearly 500 jobs.