arm64: head: move memstart_offset_seed handling to C code