memcached: implement leader election

Change-Id: I82bfdce0174410f7cb15bf594fa4c6a364881df1
Co-Authored-By: Sahid Ferdjaoui <sahid.ferdjaoui@cloudwatt.com>