[PATCH 5.4 175/214] ubi: check kthread_should_stop() after the setting of task state