The upstream development branch contains a commit that changes database and state file updates to be atomic (see e.g. https://github.com/MaxKellermann/MPD/commit/8b217d5). This should fix this issue once MPD 0.20 is released.