Fix NoMethodError in PathLocksController

What does this MR do and why?

Contributes to #470955 (closed)

Problem

page parameter type is not verified. It's possible to provide a Hash or Array value to it. It leads ot NoMethodError.

Solution

Use strong_parameters to accept only scalar types.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

  1. Visit http://gdk.test:3000/gitlab-org/gitlab-test/path_locks?page[]=a
  2. The page should load without an exception

Merge request reports

Loading