This allows userspace to estimate the amount of memory required to read
out the full states table.
Use this estimate to improve pfctl_get_states(). We now call the stats
function first and use this estimate to allocate the buffer for the
subsequent DIOCGETSTATESNV call. This reduces the total work required by
removing the need to do the call, adjust the allocation size and try
again.
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")