c/cruft: Correct bug in is_ancestor_of usage

While the test has a minor flaw on its own, the mistake is caught by a
separate test immediately after is_ancestor_of check.

Signed-off-by: Niels Thykier <niels@thykier.net>