main/freeradius: fix configure check for TLS

Fix the configure script to correctly detect if TLS is available. TLS is
needed for rlm_unix to work without segfaulting.