[PATCH kernel-4.19] mm: enhance variables check and sync for pin mem