Improve speed by fixing tor_memeq performance, bottleneck(s)

According to some legacy/trac#11332 (moved) results, tor_memeq shows up a bit high in our profiles. We can speed it up a bit, and remove one critical-path case of it.

Branches to follow.

Not sure if this is 0.2.5 or not.