Implement currentThread for Win32, cf. #663