[PATCH 5.15 363/565] ubifs: authentication: Fix use-after-free in ubifs_tnc_end_commit