test_owner_creation_time_is_read_for_system_processes flaked on the first
attempt in every Windows lane of every head of this PR, while main passes
it first time. All five retries in _live_protected_owner() ended with "no
live SYSTEM/protected process stayed CIM-readable". The scan treats a
process whose StartTime it cannot read as the A1 case, and a process that
exits during the scan reads the same way. On the elevated Windows 11 ARM64
VM no live process hides its StartTime, so under churn the exited
processes were the only such rows, and they outrank the limited-rights
fallback. Every retry's fresh scan picked another process that was
already gone.
Drop a row whose StartTime read failed when Get-Process no longer finds
the pid. The CIM re-read stays: it is also the liveness check, and a pick
that dies after the scan is still retried.
On the VM, with 16 threads spawning short-lived cmd.exe processes:
- _live_protected_owner() failed 7 of 8 times on 864fa61bf8, and every
pick was a churned cmd.exe. With this change it failed 0 of 8, and every
pick was smss.exe.
- Both test_owner_creation_time_is_read_for_system_processes cases failed
on 864fa61bf8 with file retries off, and both pass with this change. The
whole file passes (18 passed, 1 skipped because node was not on PATH).
Reported by @Ooriginador on #159146.