Test unix socket server thread

Make the test unix socket server use `threading` instead of `multiprocessing`.