[PATCH 4.14 199/222] btrfs: fix error handling in free_log_tree