apply the monkey patching only on the socket module, so we don't mess with the threading module