[PATCH 4.14 39/92] rsi: improve kernel thread handling to fix kernel panic