[cap_recipe] (reengineer: extract class) Make a class which understands the capistrano context, and can check, lock, and unlock the semaphore.

- Not in use yet.