Do not use worker if sock is given
Do not use worker if sock is given

"Sock is given" means test env or NullSocket will be used. To make tests
easy, just run sending logic in the main thread. If not, we have to wait
or synchronize these sending threads and the main thread.

taiki45/aws-xray,taiki45/aws-xray