Fix issue in proc state ranking in a cycle

Fixes failure in testCycleFgs()

Use the partially computed client proc state and adj values
if available, even if there's a cycle. Otherwise, in
some cases, it just fails to propagate the client's ranking.

Bug: 120425305
Test: atest CtsAppTestCases:ActivityManagerProcessStateTest
Change-Id: Ie1335e56cd6d10c0225eada9eb936324288e0780
2 files changed