CTS to enforce lmkd emitting statsd events for S+ (4.19+) devices

As part of this change, also fix the test flakiness. There are two
sources of flakiness:
- If we allocate too quickly, the OOM reaper might get to the process
first
- If we allocate too slowly from a background service, we might run out
of time and other background restrictions can kick in.

I switched the strategy to spawn a separate victim process that idles,
and have a fg process that allocates mem.

Bug: 177985094
Test: atest UidAtomTests
Change-Id: I8cb123b9488fbc6e88863c2f0e75f1422bcd282e
(cherry picked from commit e91f888636209772644d64ed4d40852c6d7bb466)
7 files changed