avoid global mutex every binder call

We can't get rid of a mutex (or similar) for the rarer
ProcessState::selfOrNull access, but for ProcessState::self() accesses,
which happen at least once every binder call, we can use the very fast
once flags.

Bug: 161336582
Test: boots
Change-Id: I68ce16599d9a1c1e65b85bbc9c59ab2261e54832
4 files changed