Read volume attachments from the instance database context into a new data structure before iterating over the collections

Fixes EUCA-7263