[PATCH 5.10 303/306] drm/panfrost: Simplify lock_region calculation