In FreeBSD 12 new changes require further patching of this file, this is the FreeBSD change causing the problem:
https://svnweb.freebsd.org/base?view=revision&revision=318736
Also, looks like the psutil version has been changed in this version, and further patching was needed.