[PATCH 4.18 320/350] btrfs: fix error handling in free_log_tree