erasure-code: remapping for locally repairable codes

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