osd: fix cache_evict vs make_writeable/finish_ctx snapdir bug #8629