The WiredTiger generation code API only supports finding the oldest active generation.
Most of the callers, however, simply want to know if a particular generation is active. In the presence of a large number of sessions, we may be able to do less work by only checking until we find a session where the particular resource is active, at the same time providing a more natural API.