activeKeyCount
Returns the number of keys currently tracked by this instance.
A key is tracked only while at least one caller holds or waits for its mutex, so a quiescent instance reports 0.
Cancellation: waiting for the internal map lock is cancellable and rethrows.