Catch WANT_READ and WANT_WRITE SSL exceptions

SSL_ERROR_WANT_READ and SSL_ERROR_WANT_WRITE could possibly be
thrown from either recv() or send(), so we need to make sure both
are handled.
partially merge shrews ssl_exc_fix branch
Merge branch 'sync_send' of github.com:Yelp/python-gearman into sync_send