Revert "Merge pull request #464 from gregoryyoung/master"
This commit causes deadlock in the tpool backend in the following way:
thread 1:
socket_io_add locks io_lock
tp_poll_modify waits on new_sem
thread 2:
tp_poll_wait tries to lock io_lock
tp_poll_wait is the responsible to post to new_sem, which it can't do since it's
blocked on io_lock, held by a thread waiting on new_sem.
This reverts commit
11286da0ac2e2bab7b2d8ab04b9f6a4da4e12131, reversing
changes made to
94bfdf21e6f06424ad96980a27c35c99ba42b1d3.