miniupnpd/portinuse.c: add FreeBSD support for CHECK_PORTINUSE

This change adds support for FreeBSD to the CHECK_PORTINUSE functionality. The implementation is similar to the version for DragonFlyBSD.