swsusp: fix error paths in snapshot_open