Fixed problems of nodes registred several times.

symptoms : redirect on itself, election with more nodes than active services.

This comes from to many calls to member_reset().
It is necessary to check for the current local ID before retrying.
If the local ID is set, we must explicitely leave before retrying.

Change-Id: I96d2e8539be033cdfe7c48e593da9188f512e05f