Fix account cache race condition. Lock the cache when searching/propagating