You cannot. Bogrod (Gringotts goblin) appears only in LEGO Harry Potter: Years 1–4. He is not in Years 5–7.
You may be misremembering the game or character. Check if you need a different character unlock in Years 5–7.