c api: add max wal total to opts

closes #419 . thanks :)