issue29167: fix race condition in (Int)Flag