Make socket streams thread local