Add a really ugly hack to work around the lack of capability-pointer comparisons in CHERI.

Fixes #29