btrfs: fix error handling in create_pending_snapshot