Run fn while holding the exclusive lock for target. Waits with bounded backoff, then fails cdb/locked. The lock is released even if fn throws.
fn
target
cdb/locked
Run
fnwhile holding the exclusive lock fortarget. Waits with bounded backoff, then failscdb/locked. The lock is released even iffnthrows.