Mod thread.ident by 10,000 for when they're absurdly large.