hooks: Add clear_hooks()