kern_thr_alloc
error = kern_thr_alloc(p, 0, &newtd);
int kern_thr_alloc(struct proc *, int pages, struct thread **);