kvstore: make session orphan if the leaseID was used on a failed request
kvstore: make session orphan if the leaseID was used on a failed request

If we don't check which lease ID has errored on a request made to
the kvstore, when we marking as session as orphan we can accidentally mark
an already renewed session as orphan so we need to verify if the lease
ID of a session that we want the mark it as orphan belongs to the same
session that should be marked as an orphan.

Fixes: bdc929e9d601 ("kvstore: forcefully close etcd session on error")
Signed-off-by: André Martins <bc9800b9d52a24cce72a73dd528afed53f10e5fc@cilium.dev>

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