[PATCH 5.13 378/380] drm/panfrost: Simplify lock_region calculation