Fix mod/lock and mod/leader return error codes.

This pull request fixes the `mod/lock` and `mod/leader` endpoints to use the standard `etcd/error` package.

See also: #446, #412

/cc: @philips @xiangli-cmu