Moved PC/SC calls within big global lock