Fix alarm processing of QUERY_PACKAGE_RESTART

- Code wasn't checking for the correct user which meant that it could
  return true incorrectly
- Code wasn't checking in the ancillary pending alarm lists, which means
  it could return false incorrectly.

Test: atest FrameworksMockingServicesTests:AlarmManagerServiceTest

Bug: 164215561
Change-Id: Ie595b9e208a1a1aa0fdcf52af737b239d9ed69ce
2 files changed