Update multithread (pthread) support for libssh

As explained here: http://api.libssh.org/master/libssh_tutor_threads.html