You can't unlock Fang in Lego Harry Potter games. Fang is not a playable character in any of the Lego Harry Potter games.
Fang is Hermione Granger's pet and is only present in the games as a non-playable character. He might appear in certain cutscenes or levels, but you can't control him.