Fix list miscounting in sg_set_valid_filesystems.

Previously this counted the NULL entry that terminated the list -- so
the length was set to be one too high, and reading the list back with
sg_get_valid_filesystems would produce a spurious NULL at the end.