Add riak_kv_ensembles:local_ensembles/0

Ensure that nodes don't transition from leaving to exiting while they
still have ensemble peers in use.