MFC r306332: btree(3): don't shortcut closing if the metadata is dirty.
Obtained from: NetBSD (from krb5 tree)