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.

(cherry picked from commit d698c183c3183ce3772c4b833c0c4971394942fd)