fix #19 Support to close coroutine based socket from non-main thread