fix createLayeredSocket

This allows ClientConfiguration proxy settings to be used with
-Dcom.amazonaws.sdk.disableCertChecking