thread: use unsigned (long) instead of size_t in tls_align test