Fix race in SSL 'Socket::connect()'.
Fix race in SSL 'Socket::connect()'.

Assign callback and run 'bufferevent_socket_connect' from in event
loop.

Review: https://reviews.apache.org/r/36148

chhsia0/mesos,andschwa/mesos,chhsia0/mesos,Gilbert88/mesos,zmalik/mesos,kaysoky/mesos,andschwa/mesos,Aman-Jain-14/customizedMesos,Gilbert88/mesos,jpeach/mesos,Gilbert88/mesos,craimbert/mesos,zmalik/mesos,reneploetz/mesos,jpeach/mesos,jpeach/mesos,craimbert/mesos,Aman-Jain-14/customizedMesos,andschwa/mesos,jpeach/mesos,reneploetz/mesos,abudnik/mesos,andschwa/mesos,zmalik/mesos,chhsia0/mesos,dforsyth/mesos,reneploetz/mesos,abudnik/mesos,neilconway/mesos,reneploetz/mesos,asamerh4/mesos,abudnik/mesos,Aman-Jain-14/customizedMesos,kaysoky/mesos,asamerh4/mesos,kaysoky/mesos,abudnik/mesos,neilconway/mesos,asamerh4/mesos,verizonlabs/mesos,dforsyth/mesos,craimbert/mesos,yuquanshan/customizedMesos,kaysoky/mesos,chhsia0/mesos,zmalik/mesos,reneploetz/mesos,kaysoky/mesos,asamerh4/mesos,jpeach/mesos,Gilbert88/mesos,asamerh4/mesos,andschwa/mesos,chhsia0/mesos,Gilbert88/mesos,Aman-Jain-14/customizedMesos,craimbert/mesos,chhsia0/mesos,gsantovena/mesos,verizonlabs/mesos,abudnik/mesos,gsantovena/mesos,gsantovena/mesos,kaysoky/mesos,yuquanshan/customizedMesos,reneploetz/mesos,zmalik/mesos,chhsia0/mesos,neilconway/mesos,gsantovena/mesos,verizonlabs/mesos,craimbert/mesos,neilconway/mesos,abudnik/mesos,Aman-Jain-14/customizedMesos,yuquanshan/customizedMesos,verizonlabs/mesos,abudnik/mesos,Aman-Jain-14/customizedMesos,craimbert/mesos,jpeach/mesos,asamerh4/mesos,gsantovena/mesos,Gilbert88/mesos,zmalik/mesos,gsantovena/mesos,reneploetz/mesos,verizonlabs/mesos,dforsyth/mesos,craimbert/mesos,zmalik/mesos,dforsyth/mesos,Gilbert88/mesos,yuquanshan/customizedMesos,gsantovena/mesos,yuquanshan/customizedMesos,neilconway/mesos,yuquanshan/customizedMesos,asamerh4/mesos,kaysoky/mesos,andschwa/mesos,dforsyth/mesos,dforsyth/mesos,verizonlabs/mesos,neilconway/mesos,andschwa/mesos,verizonlabs/mesos,yuquanshan/customizedMesos,jpeach/mesos,neilconway/mesos,Aman-Jain-14/customizedMesos,dforsyth/mesos