[ghak-trim PATCH v1] audit: move put_tree() to avoid trim_trees refcount underflow and UAF