thr_new: pass params.flags to cpu_set_user_tls()
(cherry picked from commit 2b8b37c8f516a5955f81a6fc35c7aac01ddf4a3a)