Add a `get_next_txn` method to `StreamIdGenerator` to match `MultiWriterIdGenerator`.