daemon: change when restored endpoints are inserted into endpoint manager
daemon: change when restored endpoints are inserted into endpoint manager

`daemon/state.go:restoreOldEndpoints` is executed before
`pkg/identity/allocator.go.InitIdentityAllocator`. Previously, endpoints were
inserted into the endpointmanager in `d.restoreOldEndpoints`.
`pkg/identity/allocator.go.InitIdentityAllocator` calls
`daemon/policy.go:TriggerPolicyUpdates`, which causes regeneration of policy for
all endpoints managed by the endpointmanager.
`pkg/identity/allocator.go.InitIdentityAllocator` is called before the
`daemon.l7Proxy` is bootstrapped. This would result in errors like the
following:

```
Error regenerating endpoint: can't update network policy, proxy disabled
```

which can result in the endpoints being put into `not-ready` state. This is
because endpoints were inserted into the endpointmanager before `daemon.l7Proxy`
was bootstrapped.

To fix this, move the insertion of endpoints into the endpoint manager in
`daemon/state.go:regenerateRestoredEndpoints`, which is called after
`daemon.l7Proxy`is bootstrapped, and after
`pkg/identity/allocator.go.InitIdentityAllocator`. Since it is not desirable to
try to regenerate endpoints until `daemon.l7Proxy` is bootstrapped, and
`daemon/state.go:regenerateRestoredEndpoints` regenerates the endpoints, it is
guaranteed that the above error will not be hit because `daemon.l7Proxy` is
created synchronously before `daemon/state.go:regenerateRestoredEndpoints` is
called.

Signed-off-by: Ian Vernon <57a33a5496950fec8433e4dd83347673459dcdfc@cilium.io>

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