MC currently rewrites accounts.cfg whenever it might have changed. To avoid unnecessary writes, it should compare the old contents with the new, and not bother writing out the file if it has not actually changed.
Fixed in 5.1.1
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.