tdb: fix the unlock calls on the GLOBAL_LOCK from previous commit.