Ref count isolated uid use for long partial wakelocks

The isolated uids need to be kept in the map while it is holding a long
partial wakelock.

Bug: 218298973
Test: atest BatteryStatsNoteTest
Change-Id: I86456137e6d6ad47f9974da281defc04d20fb32f
(cherry picked from commit fd48aa6fa6a87e0e159aca7ca8a429c47905291b)
Merged-In: I86456137e6d6ad47f9974da281defc04d20fb32f
2 files changed