The easiest method of trying the file locking feature is to open a file from within the Nextcloud Files web interface via the "Edit locally" menu item of a file. This will use your browser to communicate with the Nextcloud Desktop client to both open and lock the file.
Give it a try and if you have any feedback we would love to hear it to help improve and add to this little feature.