Improve network receive performance

Improving performance during reading from TCPSocket by using select
instead of starting a new Thread for each bucket.

Patch by Felix Petriconi.

In a simple file receive test this gave a significant speed increase of
~factor 3.