Patched Capistrano to get a thread safety fix.

I don't like the idea of monkey-patching Capistrano, but given that the cap 2.x code is a dead line, I don't think we really have a choice.