File lock in Symfony Filesystem component

Code
<?php

use Symfony\Component\Filesystem\LockHandler;

$path __DIR__ '/tmp';

$lock1 = new LockHandler('my_lock'$path);
// aquire lock
dump($lock1->lock());
// already locked by $lock1
dump($lock1->lock());

// new handler, same name and path
$lock2 = new LockHandler('my_lock'$path);
// $lock2 cannot aquire lock of $lock1
dump($lock2->lock());

// release first lock
$lock1->release();

// second try to aquire lock after $lock1 release
dump($lock2->lock());
Result
true

true

false

true
Used Versions
PHP 7.1, Zend 3.0, Symfony 3.2, Laravel 5.2, PHPUnit 5.6, Doctrine 2.6