How can I disable Windows file locking on Samba shares?

Solution 1:

I am not sure if its the default option but you could check to see if oplocking is enabled.

More information can be found here