Wrap calling mbsync in Emacs Lisp, with a gnus hook