util/disk_cache: check $HOME to avoid calling getpwuid_r
What does this MR do and why?
util/disk_cache: check $HOME to avoid calling getpwuid_r
If $HOME works, we don't need to call getpwuid_r which could
try to connect to Name Service Switch.
This simplify seccomp policy file when running mesa in the minijail
sandbox.
Signed-off-by: Lepton Wu <lepton@chromium.org>