coredump: use a freezable_schedule for the coredump_finish wait