util/foz: stop crashing on destroy if prepare hasn't been called
Fixes: eca6bb95 ("util/fossilize_db: add basic fossilize db util to read/write shader caches") Reviewed-by:Timothy Arceri <tarceri@itsqueeze.com> Part-of: <mesa/mesa!11931> (cherry picked from commit 2850db0a)