Chromium used to only implement pointer lock on Wayland in Chrome-specific code, and this prevented Electron from making use of it. This has been fixed on chromium main, so backport this as a patch to Electron.
See /docs/development/patches.md.