Commit d05b53e0baee7 removed access to the "user" variable tree by sysctlbyname().
This is not obvious since most commands use sysctl() with a numeric OID array instead of sysctlbyname() to access user.* variables.
One command that *is* affected is "whereis", but since the result of sysctlbyname("user.cs_path") is normally overridden by the value of the PATH environment variable, this issue is not detected.
The sysctl command uses sysctl() instead of sysctlbyname() and is not affected by this problem.
This review restores the previous implementation of sysctlbyname() and invokes it for the user sub-tree.