Fix several issues related to process information on OpenBSD and drop lsof usage.