Shouldn't extent also check if the value of the key used as lock is the same provided before acquiring the lock ??