[entropy.server.interfaces.db] _rewrite_treeupdates: use list instead of set

We want to preserve the order and all_actions_cache is already filtering
out the duplicates.