[PATCH 5.4 189/260] drm/panfrost: Simplify lock_region calculation