Only fetch specs for query output when needed

In RubyGems 2 Gem::Commands::QueryCommand was refactored to make it
easier to maintain.  Unfortunately there were insufficient tests and
specs were being fetched even though they were not needed.

Spec fetching was moved from #make_entry to #entry_details to fix this
bug.

Fixes bug #487

Fixes ruby bug #8019