Thread Safety Analysis: Convert CapabilityExpr::CapExpr to hold flags
Rather than holding a single bool, switch it to contain flags, which is
both more descriptive and simplifies adding more flags in subsequent
changes.
NFC.
Pull Request: https://github.com/llvm/llvm-project/pull/137133