1.0.40.8: revert sb-bsd-sockets threadsafety patch