Hello again, Sysctl security.bsd.see_other_gids variable caused problems with file locks. If it's set to 0 the problem appears. If it is set to 1 (default) everything works as expected. Regards Lukasz