[fix] Fix the hang on linux due to the versioncheck script.

Hook PyGILState_Ensure/Release to provide a better means of thread management. PyGILState_Ensure/Release make assumptions that aren't true inside of xbmc. This fixes the hang on linux due to the versioncheck script.