Fixed algorithm for acquiring a contended distributed lock