Make the cache lock a qlock and not a tas lock. locks are held while trying to lock the cache and qlock would print that the process has locks when calling qlock. making the lock a qlock seems to fix the problem.