BUGFIX: clean up thread queue pointers after waking a thread
BUGFIX: clean up thread queue pointers after waking a thread

alexfrolov/grappa,uwsampa/grappa,alexfrolov/grappa,uwsampa/grappa,alexfrolov/grappa,buaasun/grappa,buaasun/grappa,buaasun/grappa,uwsampa/grappa,buaasun/grappa,alexfrolov/grappa,buaasun/grappa,buaasun/grappa,alexfrolov/grappa,alexfrolov/grappa,buaasun/grappa,uwsampa/grappa,uwsampa/grappa,alexfrolov/grappa,uwsampa/grappa,uwsampa/grappa