Revert "sanity.c: add apic_ids and apic_copy to the cleanup code"

This reverts commit a3328658cc7b87d7e23741011656e6a8001efe13.