tdb: cleanup: rename GLOBAL_LOCK to OPEN_LOCK.