Remove unused mail_cancel_hook_add().
Remove unused mail_cancel_hook_remove().
Remove mail_cancel_all().

Turns out this function was a no-op, because nothing registered itself
to be cancelled this way.  This was part of the legacy async framework,
which we've mostly moved away from now.