Rewrite a file removing lines that exactly match any of the contraband items.
Unlike atomically_remove_lines_from_file, this matches complete lines (after trimming).
Read this database’s local_machine_id setting, parsed as u64.
Accepts either TEXT or BLOB storage so we tolerate values written by
non-pxh tooling. Returns None if the setting is absent or unparseable –
callers should fall back to non-watermarked behavior in that case.
Run f against a write transaction, retrying on SQLITE_BUSY/SQLITE_LOCKED
with exponential backoff and jitter. Each attempt uses BEGIN IMMEDIATE so
contention is detected up front rather than mid-transaction. Gives up once
max_total elapses and returns the final busy error.