[PATCH 4.9 132/141] btrfs: fix error handling in free_log_tree