fix segfault (due to DiskCache::streamLocallyOrRemotely giving device before ready)