[PATCH openEuler-5.10 13/38] mm/pin_mem: refactor pin memory mem reserve and pid reserve code