Called by compiler-injected code after a @Hook function call returns. Restores the hook key to the parent scope.