channels/smartcard: create smartcard context data structures with associated thread