[PATCH 6.6 564/676] ubifs: authentication: Fix use-after-free in ubifs_tnc_end_commit