QCTX_LOCK
int ok = 0, locked = 0, lock_requested = ((flags & QCTX_LOCK) != 0);
uint32_t flags = QCTX_S | QCTX_LOCK;