Use Ruby version-specific retry exception list for SSL socket