Fix an uncanny issue with using sessions+metadata

For some reason, using a session when talking to the metadata server on
GCE breaks: a request eventually goes to Heroku (!) instead of the
metadata server.