Calls the #GHookList @finalize_hook function if it exists, and frees the memory allocated for the #GHook.
a #GHookList
the #GHook to free