APC provides nothing that would allow us to do CAS. To "emulate" CAS,
we'll work with locks: all cache writes also briefly create a lock
cache entry (yup: #writes * 3, for lock & unlock - luckily, they're
not over the network)
Writes are disallows when a lock can't be obtained (= locked by
another write), which makes it possible for us to first retrieve,
compare & then set in a nob-atomic way.
However, there's a possibility for interference with direct APC
access touching the same keys - e.g. other scripts, not using this
class. If CAS is of importance, make sure the only things touching
APC on your server is using these classes!