Fixed removeJobsOfNonUsers to keep data consistent

removeJobsOfNonUsers() was removing different jobs from the maps mJobs and
mJobsPerSourceUid. Also modified it to remove jobs from both the caller
and the source user id. Added a test for JobStore.JobSet

Test: atest com.android.server.job.JobSetTest

Fixes: 72459151
Change-Id: I95021b6370b68ad9e8a94dd4ebcad28905ee3c8b
2 files changed