Port V1 SDK's aws/aws-sdk-go#2787 for aws/aws-sdk-go#2786 to the v2 SDK fixing a potential int overflow when determining retry delay.