Put all calls to functions that talk to the smartcard inside the big global
mutex