c api: add max wal total to opts
Merge pull request #420 from rdallman/add-wal

c api: add max wal total to opts