coolkey: Refactor the object listing to avoid invalid memory access
coolkey: Refactor the object listing to avoid invalid memory access

Probably resolves some bad memory access from oss-fuzz such as

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18907

CardContact/OpenSC,fabled/OpenSC,Jakuje/OpenSC,fabled/OpenSC,metsma/OpenSC,metsma/OpenSC,mouse07410/OpenSC,dengert/OpenSC,Jakuje/OpenSC,frankmorgner/OpenSC,fabled/OpenSC,hongquan/OpenSC-main,AktivCo/OpenSC,rickyepoderi/OpenSC,LudovicRousseau/OpenSC,LudovicRousseau/OpenSC,CardContact/OpenSC,LudovicRousseau/OpenSC,CardContact/OpenSC,AktivCo/OpenSC,rickyepoderi/OpenSC,philipWendland/OpenSC,frankmorgner/OpenSC,hongquan/OpenSC-main,OpenSC/OpenSC,frankmorgner/OpenSC,dengert/OpenSC,frankmorgner/OpenSC,Jakuje/OpenSC,OpenSC/OpenSC,OpenSC/OpenSC,AktivCo/OpenSC,philipWendland/OpenSC,rickyepoderi/OpenSC,Jakuje/OpenSC,metsma/OpenSC,mouse07410/OpenSC,mouse07410/OpenSC,hongquan/OpenSC-main,philipWendland/OpenSC,fabled/OpenSC,dengert/OpenSC