Ulster are headed to the last-16 of the Champions Cup by the skin of their teeth after Bordeaux-Begles did them a favour by hammering the Cell C Sharks in their final pool game to set up a knockout clash in April.