rts: Allow use of GNU-stack notes on FreeBSD
Previously we gated use of GNU-style non-executable stack notes to only
apply on Linux. However, these are also supported by FreeBSD, which also
uses ELF. Fix this by instead using the existing configure
check result
to determine whether the note should be included.
Fixes #25475 (closed).