Implement `lock` feature

Ensure a Capistrano version by including a `lock` directive in your
Capfile:

  lock '~> 3.0.0'

An error will be raised if the loaded version of Capistrano does not
meet the dependency specified.
Merge pull request #593 from capistrano/feature/lock

Implement `lock` feature