Unlike in client-server applications you can only choose from workarounds. The closer you need to get to the client-server model the more work is required.
I would probably not try to lock it but just warn that someone else is editing the record and save all modifications in version history. This way users will be able to resolve the conflict manually without losing the data.
This question is more than 1 month old and has been closed. Please create a new question if you have anything to add.