[PATCH 5.12 139/384] btrfs: convert logic BUG_ON()s in replace_path to ASSERT()s