Set Thread state in thread dump factory