api: Add FreeBSD specific mechanisms for unix sockets