MFC r254457
  Do not use potentially stale thread in kthread_add()

  When an existing process is provided, the thread selected to use
  to initialize the new thread could have exited and be reaped.
  Acquire the proc lock earlier to ensure the thread remains valid.