Set all assignments to 'lost' before updating a period

This should ensure that no ghost assignments exist after account merges.