osd: refactor the logic of removing the deleted snaps in process_copy_chunk

Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
i think this is buggy.. if p == q, the p iterator isn't advanced.