Replace browser confirm modal with `GlModal` in `ee/app/assets/javascripts/path_locks.js`

Replace call to window.confirm in ee/app/assets/javascripts/path_locks.js with the implementation using GlModal. The up to date migration strategy can be found in the parent epic.