This is part 2 of the sync-up for process record save/restore, split into parts for easier review. This patch introduces a core-ops target to record.c, so that we can use the core target as a target-beneath. We'll do that when we restore a saved execution log (patch part 3), because we use core files as the underlying layer of our save format.