[clangd] Fix crash if pending computations were active on exit

Summary:
Make sure JSONRPCDispatcher outlives the worker threads, they access
its fields to remove the stored cancellations when Context dies.

Reviewers: sammccall, ioeric

Reviewed By: ioeric

Subscribers: MaskRay, jkorous, arphaman, kadircet, cfe-commits

Differential Revision: https://reviews.llvm.org/D52420

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@343067 91177308-0d34-0410-b5e6-96231b3b80d8
2 files changed