A distributed algorithm with consistency for PageRank-like linear algebraic systems