libwinpr-smartcard: modifying threading