At least on the server-side, there's a conflict between flock()/BSD, which perl uses, and flock()/POSIX for which I really couldn't find a decent solution for but to workaround it by using LockFile::Simple. It's not based on flock() or lockf() and can be customized.