Use thread-safe OpenSSL::Digest instead of Digest

Fixes #1793

Related issue https://github.com/aws/aws-sdk-ruby/issues/525