Initialise rval = 0 so it doesn't return bogus values if it's not
modified by sysctl*() calls.

I need to refactor out the common code between the str and oid
paths, this is ridiculous.