Properly reset global state upon library shutdown.
add some paranoid locking around WM_ConvertOptions setting and retrieval for thread safety. reset WM_ConvertOptions upon library shutdown.