Meson: input thread is unconditionally disabled
If one builds xorg-server 1.20.4 with Meson (as e.g. Arch Linux does), the input thread and therefore silken mouse ends up being disabled due to the following issues:
- Meson sets HAVE_INPUTTHREAD, while the rest of the code uses the INPUTTHREAD macro.
- Detection of HAVE_PTHREAD_SETNAME_NP_WITH_TID is missing (fixed in master by c20e7b5e).
- Detection whether to build with -pthread and link to -lpthreads is missing.