Stats cache: change way how obsoletes are handled

- clear cache when making stores and directories obsolete;
- re-init cache after store or directory is resurrected;

Cache size will not grow. There will not be any inconsistency when
cache is recalculated fully (obsoletes are not recalculated).