Zebediah Figura (@zfigura) commented about server/thread.c:
struct thread_apc *apc; int success;
if (thread == current || thread->state == TERMINATED) continue;
if (thread == current || thread->state == TERMINATED || thread->wait) continue;
This doesn't look like it should be part of this patch...