Could you set this flag in `__wt_btree_release_memsize` after clearing `NO_EVICTION`?

That pair of functions is already overloaded: they really mean "set up a file to be the current LSM chunk" and "switch a file from the current chunk to old".  The latter is where I think we could switch on `DISCARD_CLOSE`.