If req.oldptr is NULL, there is no need to acquire
sysctlmemlock, as there is no user buffer that can be wired down.
Calling sysctl(3) or sysctlbyname(3) with a NULL oldp and a non-NULL
oldlenp is a common idiom, used to obtain the length of a
variable-length sysctl entry before retrieving the value.
Note that currently when the above idiom is used, *oldlenp is
typically an uninitialized value in the caller's context and thus
sysctlmemlock is acquired essentially at random.