samba filesystem does not support that style of locking API on Mac OS X.
Is there any known workarounds to get it to work correctly?
A time machine :-)
The SMB protocol does Windows style locking which has various wierd and wonderful semantics. But they have nothing in common with UNIX locking which can either be viewed as nice and simple, or extremely stupid. Chapter 13 of the Unix Haters Handbook has a very nice section on UNIX file locking.
Roger