ssl: use is_boolean/1 guard in option validation

This is inspired by https://github.com/erlang/otp/pull/111#issuecomment-26891002

Replace boolean checking in validate_option  with is_boolean guard