identity: Eliminate unit test raciness
identity: Eliminate unit test raciness

Make the unit test not depend on scheduling/timing by explicitly
waiting for identity update events to occur.

Fixes: #8049
Fixes: 21f462c5ebf ("policy: Add selector cache")
Signed-off-by: Jarno Rajahalme <0f1ab0ac7dffd9db21aa539af2fd4bb04abc3ad4@covalent.io>

tgraf/cilium,tklauser/cilium,michi-covalent/cilium,tgraf/cilium,tgraf/cilium,tgraf/cilium,cilium-team/cilium,tgraf/cilium,tgraf/cilium,tklauser/cilium,michi-covalent/cilium,cilium/cilium,cilium/cilium,michi-covalent/cilium,tklauser/cilium,tklauser/cilium,cilium/cilium,cilium/cilium,cilium/cilium,michi-covalent/cilium,michi-covalent/cilium,cilium-team/cilium,tklauser/cilium