Silence some clang warnings
ITS#7941 fix for repeated tags

Make sure ntags isn't incremented if we're skippnig the tag
ITS#7941
Plug leak in 4d02c741b120786df1b87ee9ed49c1d3f9bc7522

Free writer txn on env_close
ITS#7942 plug leak in controls
Merge remote-tracking branch 'origin/mdb.master' into OPENLDAP_REL_ENG_2_4
ITS#7942
ITS#7942 tweak previous commit

Only free when cleaning up operation controls, not response controls.
(This only makes a difference on search requests, which may have
multiple responses with the same set of controls.)
ITS#7943 reinit txn flags

When reusing the main write txn
Merge remote-tracking branch 'origin/mdb.master' into OPENLDAP_REL_ENG_2_4