OS-3323 set_thread_area corrupts free descriptor entry