Previously we invoked the sysctl with a NULL buffer to query the size, allocated a buffer, then invoked it again to fetch the data.
As we only handle the case where the sysctl provides data of the expected size we can just allocate a correctly-sized buffer to begin with.