When committing transaction, don't do index locking unless we really want to try rotating the log file.
When committing transaction, don't do index locking unless we really want to
try rotating the log file.

Distrotech/dovecot,Distrotech/dovecot,damoxc/dovecot,Distrotech/dovecot,LTD-Beget/dovecot,Distrotech/dovecot,damoxc/dovecot,Distrotech/dovecot,LTD-Beget/dovecot,damoxc/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,damoxc/dovecot,damoxc/dovecot,LTD-Beget/dovecot