make tsThread flags int, so they are on 32-bit aligned addresses (avoid non-atomic updates on some architectures)