[Kernel] [PATCH OpenHarmony-4.19 15/49] pstore/ram: Avoid needless alloc during header write