dont know if you still need it
but

you shouldn't use any ent_ functions or in a thread!
You can store the new vectors for the vertics in a matrix (array) with one thread - and when done for all (flag?) you can call a function in your main program loop to set them to the terrain.