dm snapshot: fix error return code in snapshot_ctr