clean global lock