Raphinha's brace helped Barcelona overcome Osasuna and open up a seven-point lead on Real Madrid at top of the ladder.