speedup: replace paranoid Maildir toc refresh with own implementation