Issue #24668:get next _itemsiteid sequence during clear