common/archive: Avoid db timeouts in lookup_snapshot_sizes
When querying all branch aliases in a snapshot, the underlying database
query can timeout as it is not properly indexable.
That commit stops to try resolving aliases when getting snapshot sizes
and only resolve an alias when required for display.
Related to T2734