Kit Harington has been cast as Gilderoy Lockhart in Season 2 of HBO’s ‘Harry Potter’ series, replacing Nicholas Hoult, who has exited the role because of scheduling conflicts