[Command] Added LockHelper

| Q             | A
| ------------- | ---
| Doc fix?      | no
| New docs?     | yes https://github.com/symfony/symfony/pull/10475
| Applies to    | Symfony version 2.6+
| Fixed tickets | -
```
By default the lock will be created in the temporary directory, but you can optionally select the
directory where locks are created by passing it as the second argument of ``LockHandler()``.
```