Retry optimistic locking