fix: netbsd_sysctl.persist with new key

When the key was not already present in sysctl.conf, the creatin was
still trying to access the (un)matched line groups.
fix: (netbsd)sysctl.persist (state was broken)

states/sysctl calls sysctl.persist with config file, regardless of the
OS. *_sysctl do have that parameter, but netbsd_sysctl.

Now, netbsd_sysctl takes a config file with a default value like the
others.
Merge pull request #18049 from ze42/netbsd_sysctl

bugfixes: netbsd_sysctl