erasure-code: remapping for locally repairable codes

based on https://github.com/ceph/ceph/pull/1890 https://github.com/ceph/ceph/pull/1903