[PATCH openEuler-5.10 053/131] btrfs: replace the BUG_ON in btrfs_del_root_ref with proper error handling