Btrfs: cleanup for duplicated code in find_free_extent