Update socketlib.py

Replaced multiprocessing with threading, again.