fn write_wstatus(status_ptr: u64, exit_code: i32) -> Result<(), SyscallError>
Write the Linux-encoded wait status to a nullable userspace pointer.