Added missing ifdef HAVE_LIBVTE, fixes #394
Thread sync and memory free fixups in RDP plugin
Removed unused function remmina_public_threads_leave()
Fix race condition
 Fix RDP race condifion, fixes #394 (missing HAVE_LIBVTE), removed unused function #399 and merge conflicts with #366
Fix RDP race condifion, fixes #394 (missing HAVE_LIBVTE), removed unused function and merge conflicts with #366. close #399