btrfs: check if the transaction was aborted at btrfs_wait_for_commit()