channels/smartcard: make handles completely opaque