pub fn retry_on_lock<F, R>(max_attempts: u32, operation: F) -> Result<R>where F: Fn() -> Result<R>,
Retry an operation that returns CascadeError on index lock contention. Uses exponential backoff with the same timing as with_lock_retry.