cache.clear('name'): fix a small GC race

Thanks to Marek for noticing it.
25 jobs for cache-clear-nitpicks
in 46 minutes and 50 seconds and was queued for 6 seconds