libwinpr-smartcard: fix deadlock in PCSC_SCardFreeMemory