fix 1385: enhance unload vim from ns_thread when not needed