eal/bsd: query the cpu count only once