[PATCH openEuler-5.10-LTS 2/7] dm thin: fix use-after-free crash in dm_sm_register_threshold_callback