check if instance metadata available

To speed up credential fetching.