Remove unused import of oslo.config

Remove unused import in glance.cmd.cache*,
and make glance code tidy and pleasing.

Change-Id: Ie5d2cf5c1a52fda505a1dd4d5b01267285a10c00
Merge "Remove unused import of oslo.config"