global lock bug