tools/uma/smrstress: fix kthread exit
(cherry picked from commit 4690e20eed17a6e79a67a8d10874fdc67a1c4ccf)