[PATCH 5.4 070/184] btrfs: convert logic BUG_ON()s in replace_path to ASSERT()s