GUAC-779: Synchronize access to shared libssh2 handles.