Bugfix: If kazoo.Semaophore() is in canceled state, retry the lock.

Change-Id: I761ca06cda9912b8868b70e676ef3964f7fb5028