slab_common: fix the check for duplicate slab names