cuvid: Use the shell window instead of creating our own
cuvid: clear function pointers after freeing the lib
Cleanup pthreads lockmgr