Extracted DependencyInstaller#available_set_for

Formerly this method existed in Gem::DependencyInstaller#install.

Due to #468 this part of the #install method needs to be changed, but
testing it as part of a complete install will be too clumsy and slow.

Instead we should test just the behavior of picking the initial set.