[PATCH 4.9 026/240] btrfs: convert logic BUG_ON()s in replace_path to ASSERT()s