lang/ruby3[0-2]: Fix build with certain CPUTYPE
When CPUTYPE is set and the CPU supports lzcnt instruction, it fails to
build because x86intrin.h is not included. Fix the test to make it work
on FreeBSD.
PR: 260791
Approved by: ruby (maintainer timeout)