reader-pcsc: improved logging and handling of reset
reader-pcsc: improved logging and handling of reset

A sleep(1) is added after SCARD_W_CARD_RESET as done in other parts of reader-pcsc.c

Extra debugging messages are output.

SCard routines return "LONG" which may be different then "long" on some systems
were "LONG" is 32 bits and "long" is 64 bits.
Make sure printf format of 0x%08lx has a matching "long" input variable.

This closes #816

hhonkanen/OpenSC,frankmorgner/OpenSC,fabled/OpenSC,Jakuje/OpenSC,hongquan/OpenSC-main,dengert/OpenSC,OpenSC/OpenSC,CardContact/OpenSC,metsma/OpenSC,fabled/OpenSC,frankmorgner/OpenSC,AktivCo/OpenSC,hhonkanen/OpenSC,viktorTarasov/OpenSC-SM,Jakuje/OpenSC,philipWendland/OpenSC,jpki/OpenSC,AktivCo/OpenSC,Jakuje/OpenSC,dengert/OpenSC,rickyepoderi/OpenSC,philipWendland/OpenSC,CardContact/OpenSC,OpenSC/OpenSC,frankmorgner/OpenSC,nmav/OpenSC,mtrojnar/OpenSC,martinpaljak/OpenSC,viktorTarasov/OpenSC-SM,dengert/OpenSC,LudovicRousseau/OpenSC,martinpaljak/OpenSC,mouse07410/OpenSC,Jakuje/OpenSC,hhonkanen/OpenSC,nmav/OpenSC,AktivCo/OpenSC,fabled/OpenSC,metsma/OpenSC,hongquan/OpenSC-main,metsma/OpenSC,LudovicRousseau/OpenSC,mouse07410/OpenSC,mtrojnar/OpenSC,viktorTarasov/OpenSC-SM,rickyepoderi/OpenSC,hongquan/OpenSC-main,frankmorgner/OpenSC,CardContact/OpenSC,mouse07410/OpenSC,philipWendland/OpenSC,OpenSC/OpenSC,nmav/OpenSC,rickyepoderi/OpenSC,jpki/OpenSC,mtrojnar/OpenSC,LudovicRousseau/OpenSC,martinpaljak/OpenSC,fabled/OpenSC,jpki/OpenSC