[PATCH 4.14 044/323] btrfs: convert logic BUG_ON()s in replace_path to ASSERT()s