[PATCH 6.12 785/826] ubifs: authentication: Fix use-after-free in ubifs_tnc_end_commit