Should there be a lock for this global var?