ThreadExecutor: fix thread interruption on 64-bit
ThreadExecutor: fix thread interruption on 64-bit

Pass the thread ID via ctypes as an unsigned long, which hopefully will
match sizeof(pthread_t) on the system.

alexey4petrov/reinteract,alexey4petrov/reinteract,alexey4petrov/reinteract