Fix undefined constant SocketError for some environments
Fix undefined constant SocketError for some environments

Signed-off-by: Daniel DeLeo <2591e5f46f28d303f9dc027d475a5c60d8dea17a@chef.io>

chef/license_scout,chef/license_scout