tdb2: check PID if we are holding a lock.