BUG: Index._id
Fixes #37213.

thanks @topper-123  Indeed thanks @topper-123! This might have resulted in a slowdown, see https://pandas.pydata.org/speed/pandas/#multiindex_object.Equals.time_equals_non_object_index?commits=f162aacc-4f5e0e06&Cython=0.29.21&python=3.8 (this commits looks most related in the relevant commit range). Now, the benchmark is only about small numbers though, so it is still fast. It's only a microbenchmark.

From a quick profile, it might be that in this case the `com.any_is_none` is giving a lot of overhead compared to the overall speed of the method.

