unix-fd: add logic to count unix fds the same way as allocated memory