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

Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
I think what you want is an unconditional ++q; ++p; and conditional assignment only.