Win32: Restore last error after TlsGetValue().