SFTP: Perform libssh init in synchronized region

static variable initialization is not thread safe in c++ standards before
c++11