channels/smartcard: improve SCardGetAttrib