The socket abstraction not being reference counted, we need a global lock for them in the short term.