channels/smartcard: fix autoallocate wrapper