Every hermes desktop launch refreshes the installed copies, so the record
was rewritten each time, and recreated as an empty list right after
hermes uninstall. Skip the write when the set is unchanged, check
ownership once up front, and ignore a record whose apps field is not a
list. The test now proves a reinstalled copy is owned by its own stamp
(record deleted first) and that uninstall leaves no record behind.