[PATCH openEuler-1.0-LTS] mm: enhance variables check and sync for pin mem