search: Bugfix makestatus() after changes in b7c0aa
persist: Use double-buffered saving for safety (write, then mv)