Enable and fix kexec syscall support.

Use mem_text_write_kernel_word when assigning reboot_code_buffer
parameters to avoid protection faults (writes to read-only kernel
memory) when CONFIG_STRICT_MEMORY_RWX is enabled.