channels/smartcard: migrate code to libwinpr-smartcard