global mutex lock