Fix a race condition in one of the test

It appears that sometimes with memcached, the acquire of the lock takes
a little more time than expected, so let's be blocking instead to be
sure we grab it.

Change-Id: I87031c8c3523d0ec5dec1a9e3e585cfa3821eb8b