[PATCH openEuler-1.0-LTS] dm thin: Fix crash in dm_sm_register_threshold_callback()