btrfs: consolidate the error handling in run_delalloc_nocow