oberthur: fixed current file state handling
oberthur: fixed current file state handling

fixes https://oss-fuzz.com/testcase-detail/5644083327664128

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