Change repair to a sync_command.

Repair should be synchronous, given that it could fail or succeed.  In
addition, fix the syntax as it's only ever called with one node, and not
a preference list.