Fix ensemble_sync by allowing {error, <<"failed">>

Allow {error, <<"failed">>} as an error response in ensemble_sync. Fixes
the test with basho/riak_ensemble#37 and basho/riak_kv#1002