tdb: fix lock-tracking test code after gradual lock changes.