implement growproc correctly (taking account threads that share address space)