[PATCH openEuler-1.0-LTS 1/3] dhugetlb: Use helper function to lock/unlock