[PATCH openEuler-5.10 51/52] xfs: prevent UAF in xfs_log_item_in_current_chkpt