RW_FLAGMASK
_DIAGASSERT(((uintptr_t)self & RW_FLAGMASK) == 0);
_DIAGASSERT(((uintptr_t)thread & RW_FLAGMASK) == 0);