Try Py2.5 compatibility as last fallback for thread identity.