test:durable: mark tests using leases with SMB 2.1 requirement
core: improve exception message for bad flag enum value

When a flag enum value fails validation, print the flags
that were unknown.
model: give better exception when cancelling completed request

This avoids a more confusing index bounds exception later.