[PATCH v8 1/3] kexec: Refactor kexec_in_progress into a function