Fix the wrong process state for statsd logging.

The process state haven't been updated yet, which causes
the wrong attribution of the job metrics per process state.

Bug: 361308212
Flag: com.android.server.job.use_correct_process_state_for_logging
Test: trace/logging.
Change-Id: If1a135f16f277688f59f254809e0ad57b1ba8c12
2 files changed