ec2: Correctly refresh IAM credentials.

Analogous to the patch to sqs in #111.
Merge pull request #134 from nelhage/ec2-refresh

ec2: Correctly refresh IAM credentials.