threaded delta search: proper locking for cache accounting