contrib/hooks: add an example pre-auto-gc hook