[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 | -
You should use the ``method`` role for the ``release()`` method.