providing sock from main thread in order to faciliate dropping privs