fn next_seq(state: &Path, key: &str) -> u32
Claim the next 1-based sequence number for key: the first free <key>.<n>.seen marker.
key
<key>.<n>.seen