fix 2 on cancelled threads in wait qs