Add _uuids_cache management to BugDir._clear_bugs