afsocket: Only build the tests if SSL is enabled

The tests require SSL support enabled, and compilation fails if it is
not present. Only build and run them when SSL support is available.

Reported-by: Viktor Tusa <tusa@balabit.hu>
Signed-off-by: Gergely Nagy <algernon@balabit.hu>