Use correct tgid for kill in timeoutWait