[PATCH 5.10 297/459] ubifs: authentication: Fix use-after-free in ubifs_tnc_end_commit