Fix a race condition that would cause the lxd image caching to fail if