How it works the record locked?

Hello, I have a doubt. What’s the correct functionament of the record locked, like the image

Doesn’t work if an user is editing, and other edit too. This not show any message or info, and both users can edit the same record, this is wrong, no? i think is better that if user edit one record, a message show it when other user try to edit. Thanks for all.