cmake: fix getrandom() detection Fixes: 86f55b04 ("arc4random: replace sysctl() with getrandom (on linux)") (cherry picked from commit 194a5d822651c03fc988c1bf087e65ed20f453f7)