Fix FORTIFY source detection
Problem spotted on FreeBSD 15 where gcc is currently broken.
The detection can see that the flags are not working, but
still propagating the last attempted value into the build,
causing a failure.
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>