Use ~0ULL as clear thread mark, not 0.