recordmcount: Correct st_shndx handling