how to get rid of the evil ~lock files of LibreOffice (v4.1x)

the only official mention about file locking i could find is this. and it doesn't seem to be related to the lock file.
it talks about some "soffice script" and whatnot.

i googled a bit without finding anything relevant, until i decided to bing it.
you can lol, but Bing gave me this link.

so, in Windows, open this file:
C:\Program Files\LibreOffice 4\share\registry\main.xcd

then find these settings:

<prop oor:name="UseDocumentSystemFileLocking" oor:type="xs:boolean" oor:nillable="false"><value>true</value></prop>
<prop oor:name="UseDocumentOOoLockFile" oor:type="xs:boolean" oor:nillable="false"><value>true</value></prop>
<prop oor:name="UseLocking" oor:type="xs:boolean" oor:nillable="false"><value>true</value></prop>
then set all of them to the value "false"

i don't see any evilness anymore. hopefully you too.